diff options
author | Marton Balint <cus@passwd.hu> | 2022-06-11 19:17:31 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2022-06-16 21:28:20 +0200 |
commit | b83032899af3fa355f94a7d77a0334fb56e1d919 (patch) | |
tree | aea87d7124f4c74f60afbf32b6ac109296b11eb6 | |
parent | 672987b2db9051a4738402751b94133c0d6c405d (diff) | |
download | ffmpeg-b83032899af3fa355f94a7d77a0334fb56e1d919.tar.gz |
Revert "avdevice/pulse_audio_dec: only set adjust latency flag if fragment_size is not set"
This reverts commit 7f059a250bb7bcbf7bba537c1a059a5934413035.
Apparently adjusting latency makes a difference even if fragment size is specifed.
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavdevice/pulse_audio_dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/pulse_audio_dec.c b/libavdevice/pulse_audio_dec.c index a33d1afd1f..ed094fd250 100644 --- a/libavdevice/pulse_audio_dec.c +++ b/libavdevice/pulse_audio_dec.c @@ -220,7 +220,7 @@ static av_cold int pulse_read_header(AVFormatContext *s) ret = pa_stream_connect_record(pd->stream, device, &attr, PA_STREAM_INTERPOLATE_TIMING - | (pd->fragment_size == -1 ? PA_STREAM_ADJUST_LATENCY : 0) + |PA_STREAM_ADJUST_LATENCY |PA_STREAM_AUTO_TIMING_UPDATE); if (ret < 0) { |