h265parse: Avoid checking for Non Mandatory VPS NAL

VPS is not mandatory, and need not check for its presence before setting
the caps. Because of the check, in streams which don't have VPS,
sticky event mishandling happens.

https://bugzilla.gnome.org/show_bug.cgi?id=752807
This commit is contained in:
Vineeth TM 2015-07-30 08:58:48 +09:00 committed by Tim-Philipp Müller
parent 8f7a84a9a1
commit 09992f32dc

View file

@ -1945,8 +1945,8 @@ gst_h265_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
}
if (format == h265parse->format && align == h265parse->align) {
/* do not set CAPS and passthrough mode if VPS/SPS/PPS have not been parsed */
if (h265parse->have_vps && h265parse->have_sps && h265parse->have_pps) {
/* do not set CAPS and passthrough mode if SPS/PPS have not been parsed */
if (h265parse->have_sps && h265parse->have_pps) {
gst_base_parse_set_passthrough (parse, TRUE);
/* we did parse codec-data and might supplement src caps */