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:
Edward Hervey 2009-05-19 11:20:19 +02:00
parent 94ca1b005e
commit 65c046b1ea

View file

@ -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);