mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
v4l2dec: also remove the colorimetry and chroma-site fields
If a different format is chosen, then these values are incorrect.
This commit is contained in:
parent
e72ef633a6
commit
0acbf40060
1 changed files with 2 additions and 1 deletions
|
@ -638,7 +638,8 @@ gst_v4l2_video_dec_handle_frame (GstVideoDecoder * decoder,
|
|||
acquired_caps = gst_video_info_to_caps (&info);
|
||||
GST_DEBUG_OBJECT (self, "Acquired caps: %" GST_PTR_FORMAT, acquired_caps);
|
||||
st = gst_caps_get_structure (acquired_caps, 0);
|
||||
gst_structure_remove_field (st, "format");
|
||||
gst_structure_remove_fields (st, "format", "colorimetry", "chroma-site",
|
||||
NULL);
|
||||
|
||||
/* Probe currently available pixel formats */
|
||||
available_caps = gst_caps_copy (self->probed_srccaps);
|
||||
|
|
Loading…
Reference in a new issue