mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
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:
parent
032779ff13
commit
21190b9749
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue