mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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:
parent
ccdd76fd18
commit
5a9c0aa9f5
1 changed files with 1 additions and 0 deletions
|
@ -675,6 +675,7 @@ gst_v4l2_dup (GstV4l2Object * v4l2object, GstV4l2Object * other)
|
||||||
GST_V4L2_CHECK_NOT_ACTIVE (v4l2object);
|
GST_V4L2_CHECK_NOT_ACTIVE (v4l2object);
|
||||||
|
|
||||||
v4l2object->vcap = other->vcap;
|
v4l2object->vcap = other->vcap;
|
||||||
|
v4l2object->device_caps = other->device_caps;
|
||||||
gst_v4l2_adjust_buf_type (v4l2object);
|
gst_v4l2_adjust_buf_type (v4l2object);
|
||||||
|
|
||||||
v4l2object->video_fd = v4l2_dup (other->video_fd);
|
v4l2object->video_fd = v4l2_dup (other->video_fd);
|
||||||
|
|
Loading…
Reference in a new issue