From 5a9c0aa9f5df1a94f19d8963c72f24d0e1e0c91f Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Sun, 10 Jul 2016 21:35:06 -0400 Subject: [PATCH] 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 --- sys/v4l2/v4l2_calls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c index da3daa4999..23581ff3d0 100644 --- a/sys/v4l2/v4l2_calls.c +++ b/sys/v4l2/v4l2_calls.c @@ -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);