mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
lavd/pulse_audio_enc: respect minreq while checking buffer fullness
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
This commit is contained in:
parent
f817d55049
commit
5bef4878d3
@ -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");
|
av_log(s, AV_LOG_ERROR, "PulseAudio stream is in invalid state.\n");
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
while (!pa_stream_writable_size(s->stream)) {
|
while (pa_stream_writable_size(s->stream) < s->minreq) {
|
||||||
if (s->nonblocking) {
|
if (s->nonblocking) {
|
||||||
pa_threaded_mainloop_unlock(s->mainloop);
|
pa_threaded_mainloop_unlock(s->mainloop);
|
||||||
return AVERROR(EAGAIN);
|
return AVERROR(EAGAIN);
|
||||||
|
Loading…
Reference in New Issue
Block a user