Revert "audiodecoder: drain current segment upon new one to ensure correct flow return"

This reverts commit 696b8cdc40.

See https://bugzilla.gnome.org/show_bug.cgi?id=734617
This commit is contained in:
Mark Nauwelaerts 2015-02-22 16:57:50 +01:00
parent cc1b4eaf9e
commit c321b6bd81

View file

@ -2040,11 +2040,6 @@ 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;