mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-06 06:46:29 -04:00
plugins: handle some fd allocation errors
This commit is contained in:
parent
09dda9e4e0
commit
96594d6716
9 changed files with 20 additions and 0 deletions
|
|
@ -906,6 +906,8 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
this->timer_source.data = this;
|
||||
this->timer_source.fd = spa_system_timerfd_create(this->data_system, CLOCK_MONOTONIC,
|
||||
SPA_FD_CLOEXEC | SPA_FD_NONBLOCK);
|
||||
if (this->timer_source.fd < 0)
|
||||
return this->timer_source.fd;
|
||||
this->timer_source.mask = SPA_IO_IN;
|
||||
this->timer_source.rmask = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue