Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Lukasz Marek authored on 2014/04/30 07:30:17... | ... |
@@ -647,7 +647,7 @@ static int pulse_write_packet(AVFormatContext *h, AVPacket *pkt) |
647 | 647 |
av_log(s, AV_LOG_ERROR, "PulseAudio stream is in invalid state.\n"); |
648 | 648 |
goto fail; |
649 | 649 |
} |
650 |
- while (!pa_stream_writable_size(s->stream)) { |
|
650 |
+ while (pa_stream_writable_size(s->stream) < s->minreq) { |
|
651 | 651 |
if (s->nonblocking) { |
652 | 652 |
pa_threaded_mainloop_unlock(s->mainloop); |
653 | 653 |
return AVERROR(EAGAIN); |