From 21190b9749b1afbcde3403d248201f2580299a8f Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Fri, 20 Dec 2013 18:06:25 -0300 Subject: [PATCH] gstaudiobasesink: Always reset last_align Should be done for all the reset_sync() cases. Not only for the READY to PAUSED one. --- gst-libs/gst/audio/gstaudiobasesink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/audio/gstaudiobasesink.c b/gst-libs/gst/audio/gstaudiobasesink.c index c9b8ebb18a..52dd7ccb0d 100644 --- a/gst-libs/gst/audio/gstaudiobasesink.c +++ b/gst-libs/gst/audio/gstaudiobasesink.c @@ -963,6 +963,7 @@ gst_audio_base_sink_reset_sync (GstAudioBaseSink * sink) sink->priv->eos_time = -1; sink->priv->discont_time = -1; sink->priv->avg_skew = -1; + sink->priv->last_align = 0; } static void @@ -2164,7 +2165,6 @@ gst_audio_base_sink_change_state (GstElement * element, break; case GST_STATE_CHANGE_READY_TO_PAUSED: gst_audio_base_sink_reset_sync (sink); - sink->priv->last_align = 0; gst_audio_ring_buffer_set_flushing (sink->ringbuffer, FALSE); gst_audio_ring_buffer_may_start (sink->ringbuffer, FALSE);