From c10f5eeceaea6d483b3c461c53356450b1a40b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 4 Nov 2014 13:58:44 +0100 Subject: [PATCH] interaudio: Only flush the ringbuffer on the sink side --- gst/inter/gstinteraudiosrc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gst/inter/gstinteraudiosrc.c b/gst/inter/gstinteraudiosrc.c index 552339319d..896384b473 100644 --- a/gst/inter/gstinteraudiosrc.c +++ b/gst/inter/gstinteraudiosrc.c @@ -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) {