mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
v4l2bufferpool: do not stop a stream not previously started
https://bugzilla.gnome.org/show_bug.cgi?id=720568
This commit is contained in:
parent
986e5b460d
commit
a54b34121f
1 changed files with 7 additions and 0 deletions
|
@ -672,6 +672,13 @@ stop_streaming (GstV4l2BufferPool * pool)
|
|||
|
||||
gst_poll_set_flushing (obj->poll, TRUE);
|
||||
|
||||
if (!pool->streaming) {
|
||||
/* it avoid error: STREAMOFF 22 (Invalid argument) when
|
||||
* attempting to stop a stream not previously started */
|
||||
GST_DEBUG_OBJECT (pool, "no need to stop, was not previously started");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
switch (obj->mode) {
|
||||
case GST_V4L2_IO_RW:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue