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
This commit is contained in:
Nicolas Dufresne 2015-12-02 18:28:15 -05:00
parent d84d1708b7
commit fe116092cd
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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: