[FFmpeg-cvslog] avdevice/pulse_audio_dec: only set adjust latency flag if fragment_size is not set

Marton Balint git at videolan.org
Sat Mar 13 01:15:18 EET 2021


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Thu Feb 11 23:03:26 2021 +0100| [7f059a250bb7bcbf7bba537c1a059a5934413035] | committer: Marton Balint

avdevice/pulse_audio_dec: only set adjust latency flag if fragment_size is not set

Otherwise fragment_size is ignored.

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7f059a250bb7bcbf7bba537c1a059a5934413035
---

 libavdevice/pulse_audio_dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/pulse_audio_dec.c b/libavdevice/pulse_audio_dec.c
index 6dea332beb..0454a643dd 100644
--- a/libavdevice/pulse_audio_dec.c
+++ b/libavdevice/pulse_audio_dec.c
@@ -218,7 +218,7 @@ static av_cold int pulse_read_header(AVFormatContext *s)
 
     ret = pa_stream_connect_record(pd->stream, device, &attr,
                                     PA_STREAM_INTERPOLATE_TIMING
-                                    |PA_STREAM_ADJUST_LATENCY
+                                    | (pd->fragment_size == -1 ? PA_STREAM_ADJUST_LATENCY : 0)
                                     |PA_STREAM_AUTO_TIMING_UPDATE);
 
     if (ret < 0) {



More information about the ffmpeg-cvslog mailing list