diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-04-30 00:30:17 +0200 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-04-30 00:36:14 +0200 |
commit | 5bef4878d3081c25b9f09b22e312451686941ace (patch) | |
tree | f9f157ced9eaa21c2146d720324107269ea07294 | |
parent | f817d55049bec14500e10427d7e3d544fa14e8d8 (diff) | |
download | ffmpeg-5bef4878d3081c25b9f09b22e312451686941ace.tar.gz |
lavd/pulse_audio_enc: respect minreq while checking buffer fullness
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
-rw-r--r-- | libavdevice/pulse_audio_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c index 01b9785fd3..b07d4c0c84 100644 --- a/libavdevice/pulse_audio_enc.c +++ b/libavdevice/pulse_audio_enc.c @@ -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); |