mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
baseaudiodecoder: fix FLUSH_STOP actions
This commit is contained in:
parent
660aa2e2c0
commit
5003868dc7
1 changed files with 2 additions and 1 deletions
|
@ -992,6 +992,7 @@ gst_base_audio_decoder_flush (GstBaseAudioDecoder * dec, gboolean hard)
|
|||
if (!hard) {
|
||||
ret = gst_base_audio_decoder_drain (dec);
|
||||
} else {
|
||||
gst_base_audio_decoder_clear_queues (dec);
|
||||
gst_segment_init (&dec->segment, GST_FORMAT_TIME);
|
||||
dec->priv->error_count = 0;
|
||||
}
|
||||
|
@ -1357,7 +1358,7 @@ gst_base_audio_decoder_sink_eventfunc (GstBaseAudioDecoder * dec,
|
|||
|
||||
case GST_EVENT_FLUSH_STOP:
|
||||
/* prepare for fresh start */
|
||||
gst_base_audio_decoder_flush (dec, FALSE);
|
||||
gst_base_audio_decoder_flush (dec, TRUE);
|
||||
break;
|
||||
|
||||
case GST_EVENT_EOS:
|
||||
|
|
Loading…
Reference in a new issue