mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
audiodecoder: drain current segment upon new one to ensure correct flow return
See also https://bugzilla.gnome.org/show_bug.cgi?id=709224
This commit is contained in:
parent
1dcd1a7479
commit
696b8cdc40
1 changed files with 5 additions and 0 deletions
|
@ -2040,6 +2040,11 @@ gst_audio_decoder_sink_eventfunc (GstAudioDecoder * dec, GstEvent * event)
|
|||
GstFormat format;
|
||||
|
||||
GST_AUDIO_DECODER_STREAM_LOCK (dec);
|
||||
/* finish data in current segment because upstream now thinks in terms
|
||||
* of a new segment so it will get confused if remaining data of the old
|
||||
* segment is delay decoded and dropped with EOS return due to clipping */
|
||||
gst_audio_decoder_flush (dec, FALSE);
|
||||
|
||||
gst_event_copy_segment (event, &seg);
|
||||
|
||||
format = seg.format;
|
||||
|
|
Loading…
Reference in a new issue