mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
v4l2object: Always set the colorimetry in S_FMT
So far we were only setting colorimetry for OUTPUT devices (v4l2sink or m2m sink pad). This prevented selecting through caps negotiation the colorimetry for CAPTURE devices (v4l2src or m2m src pad). This is rarely selectable, but trying is harmless.
This commit is contained in:
parent
c84f4e0491
commit
dd1c5aed65
1 changed files with 126 additions and 128 deletions
|
@ -3249,7 +3249,6 @@ gst_v4l2_object_set_format_full (GstV4l2Object * v4l2object, GstCaps * caps,
|
|||
field = V4L2_FIELD_NONE;
|
||||
}
|
||||
|
||||
if (V4L2_TYPE_IS_OUTPUT (v4l2object->type)) {
|
||||
/* We first pick th main colorspace from the primaries */
|
||||
switch (info.colorimetry.primaries) {
|
||||
case GST_VIDEO_COLOR_PRIMARIES_BT709:
|
||||
|
@ -3379,7 +3378,6 @@ gst_v4l2_object_set_format_full (GstV4l2Object * v4l2object, GstCaps * caps,
|
|||
transfer = V4L2_XFER_FUNC_NONE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (v4l2object->dbg_obj, "Desired format %dx%d, format "
|
||||
"%" GST_FOURCC_FORMAT " stride: %d", width, height,
|
||||
|
|
Loading…
Reference in a new issue