audiodecoder: no fallback to segment start for reverse playback

See https://bugzilla.gnome.org/show_bug.cgi?id=709965
This commit is contained in:
Mark Nauwelaerts 2013-12-04 19:24:08 +01:00
parent 4a81e22607
commit 6e639b73ff

View file

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