h264parse: Wait for SEI before exposing src caps

This makes sure 'lcevc=false' src caps are not set before parsing SEI. It is
needed for decodebin2 to work properly with the LCEVC decoder.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7330>
This commit is contained in:
Julian Bouzas 2024-09-03 17:09:40 -04:00 committed by GStreamer Marge Bot
parent 8055b0386f
commit 9accf21e53

View file

@ -3674,10 +3674,7 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
gst_caps_unref (in_caps);
}
if (format == h264parse->format && align == h264parse->align) {
/* we did parse codec-data and might supplement src caps */
gst_h264_parse_update_src_caps (h264parse, caps);
} else if (format == GST_H264_PARSE_FORMAT_AVC
if (format == GST_H264_PARSE_FORMAT_AVC
|| format == GST_H264_PARSE_FORMAT_AVC3) {
/* if input != output, and input is avc, must split before anything else */
/* arrange to insert codec-data in-stream if needed.