v4l2videodec: copy colorimetry values to output_state caps

This is to avoid transcoding negotiation fail between v4l2h265dec
and v4l2h264enc caused by colorimetry mismatch.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2192>
This commit is contained in:
Hou Qi 2022-04-15 09:53:19 +08:00 committed by GStreamer Marge Bot
parent cb8da91f7a
commit 8dcb8a28af

View file

@ -609,6 +609,7 @@ gst_v4l2_video_dec_setup_capture (GstVideoDecoder * decoder)
/* Copy the rest of the information, there might be more in the future */
output_state->info.interlace_mode = info.interlace_mode;
output_state->info.colorimetry = info.colorimetry;
gst_video_codec_state_unref (output_state);
gst_v4l2_buffer_pool_enable_resolution_change (GST_V4L2_BUFFER_POOL
(self->v4l2capture->pool));