From fe116092cdcda0d1d100e1dbbc4577cd9e4e074a Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 2 Dec 2015 18:28:15 -0500 Subject: [PATCH] h26xparse: Resend PPS/SPS after seek This is to support byte-stream decoder that does not remember the PPS/SPS after a flush. This is not needed by all decoders, but is harmless for those that do remember. https://bugzilla.gnome.org/show_bug.cgi?id=758405 --- gst/videoparsers/gsth264parse.c | 1 + gst/videoparsers/gsth265parse.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 915c2d7d2e..31d6a60e99 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -2702,6 +2702,7 @@ gst_h264_parse_event (GstBaseParse * parse, GstEvent * event) case GST_EVENT_FLUSH_STOP: h264parse->dts = GST_CLOCK_TIME_NONE; h264parse->ts_trn_nb = GST_CLOCK_TIME_NONE; + h264parse->push_codec = TRUE; res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event); break; diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index d6496816e3..8fb20800b5 100644 --- a/gst/videoparsers/gsth265parse.c +++ b/gst/videoparsers/gsth265parse.c @@ -2188,7 +2188,7 @@ gst_h265_parse_event (GstBaseParse * parse, GstEvent * event) break; } case GST_EVENT_FLUSH_STOP: - + h265parse->push_codec = TRUE; res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event); break; case GST_EVENT_SEGMENT: