Commit 0acbf400 authored by Matthew Waters's avatar Matthew Waters 🐨

v4l2dec: also remove the colorimetry and chroma-site fields

If a different format is chosen, then these values are incorrect.
parent e72ef633
......@@ -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",
/* Probe currently available pixel formats */
available_caps = gst_caps_copy (self->probed_srccaps);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment