From 604c1bfb4e15db59691c4e69ef60215b14c415fe Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 28 Feb 2018 23:12:39 -0500 Subject: [PATCH] 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 --- gst-libs/gst/video/gstvideodecoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c index 4d20a0efce..a003082a4a 100644 --- a/gst-libs/gst/video/gstvideodecoder.c +++ b/gst-libs/gst/video/gstvideodecoder.c @@ -845,6 +845,7 @@ gst_video_decoder_push_event (GstVideoDecoder * decoder, GstEvent * event) decoder->priv->in_out_segment_sync = gst_segment_is_equal (&decoder->input_segment, &segment); decoder->priv->last_timestamp_out = GST_CLOCK_TIME_NONE; + decoder->priv->earliest_time = GST_CLOCK_TIME_NONE; GST_VIDEO_DECODER_STREAM_UNLOCK (decoder); break; }