v4l2: handle suspend

This commit is contained in:
Wim Taymans 2020-01-08 13:23:35 +01:00
parent b0705a89b0
commit 9ffa9c0b08
2 changed files with 4 additions and 3 deletions

View file

@ -1534,12 +1534,12 @@ static int spa_v4l2_stream_off(struct impl *this)
enum v4l2_buf_type type;
uint32_t i;
if (dev->fd == -1)
return -EIO;
if (!dev->active)
return 0;
if (dev->fd == -1)
return -EIO;
spa_log_debug(this->log, "stopping");
spa_loop_invoke(this->data_loop, do_remove_source, 0, NULL, 0, true, port);