FS-10503 return causes break on first loop and can cause buildup in buffer
This commit is contained in:
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:
|
||||
|
|
Loading…
Reference in New Issue