mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
interaudio: Only flush the ringbuffer on the sink side
This commit is contained in:
parent
6a36b53831
commit
c10f5eecea
1 changed files with 0 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue