v4l2transform: Stop stream before closing the devices.

This commit is contained in:
Nicolas Dufresne 2014-03-15 18:56:51 +01:00
parent 4f7ee5c130
commit 6d5ffe8da2

View file

@ -183,6 +183,8 @@ gst_v4l2_transform_stop (GstBaseTransform * trans)
GST_DEBUG_OBJECT (self, "Closing");
gst_v4l2_object_stop (self->v4l2output);
gst_v4l2_object_stop (self->v4l2capture);
gst_v4l2_object_close (self->v4l2output);
gst_v4l2_object_close (self->v4l2capture);
gst_caps_replace (&self->probed_srccaps, NULL);