interaudio: Only flush the ringbuffer on the sink side

This commit is contained in:
Sebastian Dröge 2014-11-04 13:58:44 +01:00
parent 6a36b53831
commit c10f5eecea

View file

@ -316,12 +316,6 @@ gst_inter_audio_src_create (GstBaseSrc * src, guint64 offset, guint size,
else
n = 0;
while (n > PERIOD * 10) {
GST_WARNING_OBJECT (interaudiosrc, "flushing %d samples", PERIOD / 2);
gst_adapter_flush (interaudiosrc->surface->audio_adapter,
(PERIOD / 2) * bpf);
n -= (PERIOD / 2);
}
if (n > PERIOD)
n = PERIOD;
if (n > 0) {