gstaudiobasesink: Always reset last_align

Should be done for all the reset_sync() cases. Not
only for the READY to PAUSED one.
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2013-12-20 18:06:25 -03:00
parent 032779ff13
commit 21190b9749

View file

@ -963,6 +963,7 @@ gst_audio_base_sink_reset_sync (GstAudioBaseSink * sink)
sink->priv->eos_time = -1; sink->priv->eos_time = -1;
sink->priv->discont_time = -1; sink->priv->discont_time = -1;
sink->priv->avg_skew = -1; sink->priv->avg_skew = -1;
sink->priv->last_align = 0;
} }
static void static void
@ -2164,7 +2165,6 @@ gst_audio_base_sink_change_state (GstElement * element,
break; break;
case GST_STATE_CHANGE_READY_TO_PAUSED: case GST_STATE_CHANGE_READY_TO_PAUSED:
gst_audio_base_sink_reset_sync (sink); 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_set_flushing (sink->ringbuffer, FALSE);
gst_audio_ring_buffer_may_start (sink->ringbuffer, FALSE); gst_audio_ring_buffer_may_start (sink->ringbuffer, FALSE);