videodecoder: Reset QoS time after pushing segment

This fixes playbin gapless playback. An ancient QoS time was used and
would lead to all frames being dropped.

https://bugzilla.gnome.org/show_bug.cgi?id=668995
This commit is contained in:
Nicolas Dufresne 2018-02-28 23:12:39 -05:00 committed by Olivier Crête
parent 22981e8a42
commit 604c1bfb4e

View file

@ -845,6 +845,7 @@ gst_video_decoder_push_event (GstVideoDecoder * decoder, GstEvent * event)
decoder->priv->in_out_segment_sync = decoder->priv->in_out_segment_sync =
gst_segment_is_equal (&decoder->input_segment, &segment); gst_segment_is_equal (&decoder->input_segment, &segment);
decoder->priv->last_timestamp_out = GST_CLOCK_TIME_NONE; decoder->priv->last_timestamp_out = GST_CLOCK_TIME_NONE;
decoder->priv->earliest_time = GST_CLOCK_TIME_NONE;
GST_VIDEO_DECODER_STREAM_UNLOCK (decoder); GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
break; break;
} }