summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2016-07-10 21:35:06 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2016-07-10 21:37:24 -0400
commit5a9c0aa9f5df1a94f19d8963c72f24d0e1e0c91f (patch)
treef5cfb3bf94e372d0e395e18fa38b9943abfb9411 /sys
parentccdd76fd1882b7ede3e9e9143365e061a850b4b7 (diff)
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
Diffstat (limited to 'sys')
-rw-r--r--sys/v4l2/v4l2_calls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c
index da3daa499..23581ff3d 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);