mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
gstaudiobasesink: Reset last_align to 0, not -1
This is the expected behavior in READY -> PAUSED
This commit is contained in:
parent
c1de7cdefb
commit
032779ff13
1 changed files with 1 additions and 1 deletions
|
@ -2164,7 +2164,7 @@ 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 = -1;
|
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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue