v4l2: Also copy device_caps in gst_v4l2_dup

This fixes regression where M2M error out saying they have no output
format (the V4L2 CAPTURE side).

https://bugzilla.gnome.org/show_bug.cgi?id=768195
This commit is contained in:
Nicolas Dufresne 2016-07-10 21:35:06 -04:00
parent ccdd76fd18
commit 5a9c0aa9f5

View file

@ -675,6 +675,7 @@ gst_v4l2_dup (GstV4l2Object * v4l2object, GstV4l2Object * other)
GST_V4L2_CHECK_NOT_ACTIVE (v4l2object);
v4l2object->vcap = other->vcap;
v4l2object->device_caps = other->device_caps;
gst_v4l2_adjust_buf_type (v4l2object);
v4l2object->video_fd = v4l2_dup (other->video_fd);