From 6e639b73ffd0043ff6804e65c1331661d5730579 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Wed, 4 Dec 2013 19:24:08 +0100 Subject: [PATCH] audiodecoder: no fallback to segment start for reverse playback See https://bugzilla.gnome.org/show_bug.cgi?id=709965 --- gst-libs/gst/audio/gstaudiodecoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index 51b0dcf..7994db8 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -1102,7 +1102,8 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf, } /* still no valid ts, track the segment one */ - if (G_UNLIKELY (!GST_CLOCK_TIME_IS_VALID (priv->base_ts))) { + if (G_UNLIKELY (!GST_CLOCK_TIME_IS_VALID (priv->base_ts)) && + dec->output_segment.rate > 0.0) { priv->base_ts = dec->output_segment.start; } -- 2.7.4