From 871491458f76e1eb8d8d27631b23e74f3c106b4d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 5 Nov 2019 10:51:15 -0500 Subject: [PATCH] TT#69700 reduce max allowed delay to half a second Change-Id: I34a861b00e9ae0a213eb211c05b2904e9c97fa0a --- recording-daemon/mix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recording-daemon/mix.c b/recording-daemon/mix.c index d2047e6aa..dfb5af285 100644 --- a/recording-daemon/mix.c +++ b/recording-daemon/mix.c @@ -210,10 +210,10 @@ static void mix_silence_fill(mix_t *mix) { return; for (int i = 0; i < NUM_INPUTS; i++) { - // check the pts of each input and give them max 1 second of delay. + // check the pts of each input and give them max 0.5 second of delay. // if they fall behind too much, fill input with silence. otherwise // output stalls and won't produce media - mix_silence_fill_idx_upto(mix, i, mix->out_pts - mix->format.clockrate); + mix_silence_fill_idx_upto(mix, i, mix->out_pts - mix->format.clockrate / 2); } }