Commit 5bef4878 authored by Lukasz Marek's avatar Lukasz Marek

lavd/pulse_audio_enc: respect minreq while checking buffer fullness

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki2@gmail.com>
parent f817d550
......@@ -647,7 +647,7 @@ static int pulse_write_packet(AVFormatContext *h, AVPacket *pkt)
av_log(s, AV_LOG_ERROR, "PulseAudio stream is in invalid state.\n");
goto fail;
}
while (!pa_stream_writable_size(s->stream)) {
while (pa_stream_writable_size(s->stream) < s->minreq) {
if (s->nonblocking) {
pa_threaded_mainloop_unlock(s->mainloop);
return AVERROR(EAGAIN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment