v4l2transform: Flush buffer pools on flush stop
https://bugzilla.gnome.org/show_bug.cgi?id=730207
This commit is contained in:
parent
7986c55dcb
commit
c1792de95e
@ -539,6 +539,12 @@ gst_v4l2_transform_sink_event (GstBaseTransform * trans, GstEvent * event)
|
|||||||
break;
|
break;
|
||||||
case GST_EVENT_FLUSH_STOP:
|
case GST_EVENT_FLUSH_STOP:
|
||||||
GST_DEBUG_OBJECT (self, "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->v4l2output);
|
||||||
gst_v4l2_object_unlock_stop (self->v4l2capture);
|
gst_v4l2_object_unlock_stop (self->v4l2capture);
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user