1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-18 09:32:34 +00:00

FS-10503 return causes break on first loop and can cause buildup in buffer

This commit is contained in:
Anthony Minessale 2017-08-31 14:17:25 -05:00
parent ce5c69f63a
commit 68fc3b5120

@ -1915,7 +1915,6 @@ GCC_DIAG_ON(deprecated-declarations)
switch_core_timer_init(&context->audio_timer, "soft", 1, handle->samplerate / 1000, context->pool);
}
while ((inuse = switch_buffer_inuse(context->audio_buffer)) >= bytes) {
AVPacket pkt[2] = { {0} };
int got_packet[2] = {0};
@ -2025,10 +2024,6 @@ GCC_DIAG_ON(deprecated-declarations)
}
}
}
if (data) {
break;
}
}
end: