v4l2: Also copy device_caps in gst_v4l2_dup
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 11 Jul 2016 01:35:06 +0000 (21:35 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 11 Jul 2016 01:37:24 +0000 (21:37 -0400)
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

sys/v4l2/v4l2_calls.c

index da3daa4..23581ff 100644 (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);