mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
v4l2: remove source on errors
This commit is contained in:
parent
96fdfc86f7
commit
7ffaaf66a7
1 changed files with 3 additions and 1 deletions
|
|
@ -1187,7 +1187,9 @@ static void v4l2_on_fd_events(struct spa_source *source)
|
|||
struct impl *this = source->data;
|
||||
|
||||
if (source->rmask & SPA_IO_ERR) {
|
||||
spa_log_warn(this->log, "v4l2 %p: error %d", this, source->rmask);
|
||||
struct port *port = &this->out_ports[0];
|
||||
spa_log_error(this->log, "v4l2 %p: error %d", this, source->rmask);
|
||||
spa_loop_remove_source(port->data_loop, &port->source);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue