Commit c1792de9 authored by Nicolas Dufresne's avatar Nicolas Dufresne

v4l2transform: Flush buffer pools on flush stop

https://bugzilla.gnome.org/show_bug.cgi?id=730207
parent 7986c55d
......@@ -539,6 +539,12 @@ gst_v4l2_transform_sink_event (GstBaseTransform * trans, GstEvent * event)
break;
case GST_EVENT_FLUSH_STOP:
GST_DEBUG_OBJECT (self, "flush stop");
if (self->v4l2output->pool)
gst_v4l2_buffer_pool_flush (GST_V4L2_BUFFER_POOL (self->v4l2output->
pool));
if (self->v4l2capture->pool)
gst_v4l2_buffer_pool_flush (GST_V4L2_BUFFER_POOL (self->v4l2capture->
pool));
gst_v4l2_object_unlock_stop (self->v4l2output);
gst_v4l2_object_unlock_stop (self->v4l2capture);
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment