mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
videobox: avoid dropping caps fields for passthrough caps transform
Fixes potential negotiation failure in case downstream element is a bit picky regarding the fields in question. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2786>
This commit is contained in:
parent
ea47a82e9e
commit
b5707e2371
1 changed files with 6 additions and 4 deletions
|
@ -2949,11 +2949,13 @@ gst_video_box_transform_caps (GstBaseTransform * trans,
|
||||||
gst_structure_set_value (structure, "format", &val);
|
gst_structure_set_value (structure, "format", &val);
|
||||||
g_value_unset (&val);
|
g_value_unset (&val);
|
||||||
g_value_unset (&list);
|
g_value_unset (&list);
|
||||||
|
|
||||||
|
/* format list above makes for non-fixed caps;
|
||||||
|
* so basetransform and peers will be enlisted to decide these parts,
|
||||||
|
* otherwise leave as-is for passthrough case */
|
||||||
|
gst_structure_remove_field (structure, "colorimetry");
|
||||||
|
gst_structure_remove_field (structure, "chroma-site");
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_structure_remove_field (structure, "colorimetry");
|
|
||||||
gst_structure_remove_field (structure, "chroma-site");
|
|
||||||
|
|
||||||
gst_caps_append_structure (to, structure);
|
gst_caps_append_structure (to, structure);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue