mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
spa: support: loop: don't initialize source->loop
There is no need to initialize the `loop`, `rmask`, or `priv` members of a `spa_source` because `loop_add_source()` will take care of that.
This commit is contained in:
parent
d6dfa93b40
commit
b12f24efb9
1 changed files with 0 additions and 5 deletions
|
|
@ -438,7 +438,6 @@ static struct spa_source *loop_add_io(void *object,
|
|||
if (source == NULL)
|
||||
goto error_exit;
|
||||
|
||||
source->source.loop = &impl->loop;
|
||||
source->source.func = source_io_func;
|
||||
source->source.data = data;
|
||||
source->source.fd = fd;
|
||||
|
|
@ -535,7 +534,6 @@ static struct spa_source *loop_add_idle(void *object,
|
|||
if ((res = spa_system_eventfd_create(impl->system, SPA_FD_CLOEXEC | SPA_FD_NONBLOCK)) < 0)
|
||||
goto error_exit_free;
|
||||
|
||||
source->source.loop = &impl->loop;
|
||||
source->source.func = source_idle_func;
|
||||
source->source.data = data;
|
||||
source->source.fd = res;
|
||||
|
|
@ -590,7 +588,6 @@ static struct spa_source *loop_add_event(void *object,
|
|||
if ((res = spa_system_eventfd_create(impl->system, SPA_FD_CLOEXEC | SPA_FD_NONBLOCK)) < 0)
|
||||
goto error_exit_free;
|
||||
|
||||
source->source.loop = &impl->loop;
|
||||
source->source.func = source_event_func;
|
||||
source->source.data = data;
|
||||
source->source.fd = res;
|
||||
|
|
@ -658,7 +655,6 @@ static struct spa_source *loop_add_timer(void *object,
|
|||
SPA_FD_CLOEXEC | SPA_FD_NONBLOCK)) < 0)
|
||||
goto error_exit_free;
|
||||
|
||||
source->source.loop = &impl->loop;
|
||||
source->source.func = source_timer_func;
|
||||
source->source.data = data;
|
||||
source->source.fd = res;
|
||||
|
|
@ -740,7 +736,6 @@ static struct spa_source *loop_add_signal(void *object,
|
|||
signal_number, SPA_FD_CLOEXEC | SPA_FD_NONBLOCK)) < 0)
|
||||
goto error_exit_free;
|
||||
|
||||
source->source.loop = &impl->loop;
|
||||
source->source.func = source_signal_func;
|
||||
source->source.data = data;
|
||||
source->source.fd = res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue