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@passwd.hu>
pull/371/head
Marton Balint 4 years ago
parent 104aa921c9
commit 7f059a250b
  1. 2
      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) {

Loading…
Cancel
Save