[FFmpeg-cvslog] lavd/pulse_audio_enc: respect minreq while checking buffer fullness
Lukasz Marek
git at videolan.org
Wed Apr 30 14:41:57 CEST 2014
ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Wed Apr 30 00:30:17 2014 +0200| [5bef4878d3081c25b9f09b22e312451686941ace] | committer: Lukasz Marek
lavd/pulse_audio_enc: respect minreq while checking buffer fullness
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5bef4878d3081c25b9f09b22e312451686941ace
---
libavdevice/pulse_audio_enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c
index 01b9785..b07d4c0 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);
More information about the ffmpeg-cvslog
mailing list