v4l2: only to STREAMOFF when streaming

Only call STREAMOFF when we previously called STREAMON
This commit is contained in:
Wim Taymans 2011-07-19 18:25:29 +01:00
parent 83bc5e0765
commit b98bc75f47

View file

@ -398,6 +398,7 @@ gst_v4l2_buffer_pool_stop (GstBufferPool * bpool)
GST_DEBUG_OBJECT (pool, "stopping pool");
if (pool->streaming) {
switch (obj->mode) {
case GST_V4L2_IO_RW:
break;
@ -413,8 +414,8 @@ gst_v4l2_buffer_pool_stop (GstBufferPool * bpool)
g_assert_not_reached ();
break;
}
pool->streaming = FALSE;
}
/* first free the buffers in the queue */
ret = GST_BUFFER_POOL_CLASS (parent_class)->stop (bpool);