mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
Implement subscription with a signal
Use a signal for subscription events Work on handling OOM errors and other errors.
This commit is contained in:
parent
1b66bbcffd
commit
85d375e4bb
32 changed files with 531 additions and 176 deletions
|
|
@ -99,6 +99,9 @@ pinos_transport_new (unsigned int max_inputs,
|
|||
area.n_outputs = 0;
|
||||
|
||||
impl = calloc (1, sizeof (PinosTransportImpl));
|
||||
if (impl == NULL)
|
||||
return NULL;
|
||||
|
||||
impl->offset = 0;
|
||||
|
||||
trans = &impl->trans;
|
||||
|
|
@ -124,6 +127,9 @@ pinos_transport_new_from_info (PinosTransportInfo *info)
|
|||
void *tmp;
|
||||
|
||||
impl = calloc (1, sizeof (PinosTransportImpl));
|
||||
if (impl == NULL)
|
||||
return NULL;
|
||||
|
||||
trans = &impl->trans;
|
||||
pinos_signal_init (&trans->destroy_signal);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue