mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
audiodecoder: flush decoder in transition PAUSED->READY
https://bugzilla.gnome.org/show_bug.cgi?id=787311
This commit is contained in:
parent
bcca3b926c
commit
e7cf4c058d
1 changed files with 5 additions and 0 deletions
|
@ -2960,6 +2960,11 @@ gst_audio_decoder_change_state (GstElement * element, GstStateChange transition)
|
|||
break;
|
||||
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
|
||||
break;
|
||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||
GST_AUDIO_DECODER_STREAM_LOCK (codec);
|
||||
gst_audio_decoder_flush (codec, TRUE);
|
||||
GST_AUDIO_DECODER_STREAM_UNLOCK (codec);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue