mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
wavparse: When flushing on EOS, don't process more data than the "data" size
Even if we have more data queued up when flushing than the size of the data chunk, don't process and output it. If the data size is known, this likely contains another chunk (e.g. an INFO chunk) or things like ID3 tags. Just outputting them as if they were data is going to cause unexpected behaviour and unpleasant audio noises.
This commit is contained in:
parent
be5f94734a
commit
53c797d604
1 changed files with 0 additions and 2 deletions
|
@ -2322,8 +2322,6 @@ gst_wavparse_flush_data (GstWavParse * wav)
|
||||||
guint av;
|
guint av;
|
||||||
|
|
||||||
if ((av = gst_adapter_available (wav->adapter)) > 0) {
|
if ((av = gst_adapter_available (wav->adapter)) > 0) {
|
||||||
wav->dataleft = av;
|
|
||||||
wav->end_offset = wav->offset + av;
|
|
||||||
ret = gst_wavparse_stream_data (wav);
|
ret = gst_wavparse_stream_data (wav);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue