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
@ -778,6 +778,10 @@ gst_audio_resample_push_drain (GstAudioResample * resample)
|
|||||||
if (!resample->state)
|
if (!resample->state)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* Don't drain samples if we were resetted. */
|
||||||
|
if (resample->next_ts == -1)
|
||||||
|
return;
|
||||||
|
|
||||||
need_convert = (resample->funcs->width != resample->width);
|
need_convert = (resample->funcs->width != resample->width);
|
||||||
|
|
||||||
resample->funcs->get_ratio (resample->state, &num, &den);
|
resample->funcs->get_ratio (resample->state, &num, &den);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user