mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
Mainloop: use PinosLoop
Implement the main-loop with pinos_loop except for the parts that still need to go through glib mainloop. Start working on native protocol
This commit is contained in:
parent
e7cae649aa
commit
efae64a759
13 changed files with 678 additions and 311 deletions
|
|
@ -50,7 +50,7 @@ pinos_core_new (PinosMainLoop *main_loop)
|
|||
impl->support[2].uri = SPA_LOOP__DataLoop;
|
||||
impl->support[2].data = this->data_loop->loop->loop;
|
||||
impl->support[3].uri = SPA_LOOP__MainLoop;
|
||||
impl->support[3].data = this->main_loop->loop;
|
||||
impl->support[3].data = this->main_loop->loop->loop;
|
||||
this->support = impl->support;
|
||||
this->n_support = 4;
|
||||
|
||||
|
|
@ -162,3 +162,16 @@ pinos_core_find_port (PinosCore *core,
|
|||
}
|
||||
return best;
|
||||
}
|
||||
|
||||
PinosNodeFactory *
|
||||
pinos_core_find_node_factory (PinosCore *core,
|
||||
const char *name)
|
||||
{
|
||||
PinosNodeFactory *factory;
|
||||
|
||||
spa_list_for_each (factory, &core->node_factory_list, link) {
|
||||
if (strcmp (factory->name, name) == 0)
|
||||
return factory;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue