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
@ -638,7 +638,8 @@ gst_v4l2_video_dec_handle_frame (GstVideoDecoder * decoder,
|
|||||||
acquired_caps = gst_video_info_to_caps (&info);
|
acquired_caps = gst_video_info_to_caps (&info);
|
||||||
GST_DEBUG_OBJECT (self, "Acquired caps: %" GST_PTR_FORMAT, acquired_caps);
|
GST_DEBUG_OBJECT (self, "Acquired caps: %" GST_PTR_FORMAT, acquired_caps);
|
||||||
st = gst_caps_get_structure (acquired_caps, 0);
|
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 */
|
/* Probe currently available pixel formats */
|
||||||
available_caps = gst_caps_copy (self->probed_srccaps);
|
available_caps = gst_caps_copy (self->probed_srccaps);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user