mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
audioresample: Don't drain remaining buffers after a flush.
If we were resetted (due to a flush), we can not drain the remaining buffers since they would be pushed before a valid new newsegment event.
This commit is contained in:
parent
94ca1b005e
commit
65c046b1ea
1 changed files with 4 additions and 0 deletions
|
@ -778,6 +778,10 @@ gst_audio_resample_push_drain (GstAudioResample * resample)
|
|||
if (!resample->state)
|
||||
return;
|
||||
|
||||
/* Don't drain samples if we were resetted. */
|
||||
if (resample->next_ts == -1)
|
||||
return;
|
||||
|
||||
need_convert = (resample->funcs->width != resample->width);
|
||||
|
||||
resample->funcs->get_ratio (resample->state, &num, &den);
|
||||
|
|
Loading…
Reference in a new issue