From cd8c0227c8e5b4322052097131da20c04dbf68d0 Mon Sep 17 00:00:00 2001 From: "duhui.lee" Date: Mon, 20 Jan 2014 15:21:42 +0900 Subject: [PATCH] h265parse: Update caps when receive VPS/SPS/PPS https://bugzilla.gnome.org/show_bug.cgi?id=722240 --- gst/videoparsers/gsth265parse.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index 95ca9284c8..d2e828d025 100644 --- a/gst/videoparsers/gsth265parse.c +++ b/gst/videoparsers/gsth265parse.c @@ -1828,10 +1828,13 @@ gst_h265_parse_set_caps (GstBaseParse * parse, GstCaps * caps) } if (format == h265parse->format && align == h265parse->align) { - gst_base_parse_set_passthrough (parse, TRUE); + /* 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) { + gst_base_parse_set_passthrough (parse, TRUE); - /* we did parse codec-data and might supplement src caps */ - gst_h265_parse_update_src_caps (h265parse, caps); + /* we did parse codec-data and might supplement src caps */ + gst_h265_parse_update_src_caps (h265parse, caps); + } } else if (format == GST_H265_PARSE_FORMAT_HVC1 || format == GST_H265_PARSE_FORMAT_HEV1) { /* if input != output, and input is hevc, must split before anything else */