mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +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
|
else
|
||||||
n = 0;
|
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)
|
if (n > PERIOD)
|
||||||
n = PERIOD;
|
n = PERIOD;
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
|
|
Loading…
Reference in a new issue