From 032779ff13f1488dd6eddfd7c81183aa76ef17f2 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Fri, 20 Dec 2013 18:02:42 -0300 Subject: [PATCH] gstaudiobasesink: Reset last_align to 0, not -1 This is the expected behavior in READY -> PAUSED --- 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 02c410db55..c9b8ebb18a 100644 --- a/gst-libs/gst/audio/gstaudiobasesink.c +++ b/gst-libs/gst/audio/gstaudiobasesink.c @@ -2164,7 +2164,7 @@ 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 = -1; + sink->priv->last_align = 0; gst_audio_ring_buffer_set_flushing (sink->ringbuffer, FALSE); gst_audio_ring_buffer_may_start (sink->ringbuffer, FALSE);