From d6a69d6f23c2badc7d9abfdcf956be55d5e7e370 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Tue, 27 May 2014 08:16:43 +0100 Subject: [PATCH] Delay for 0.1 seconds if first packet is late. --- player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/player.c b/player.c index 4512eca1..fe6b3119 100644 --- a/player.c +++ b/player.c @@ -343,8 +343,8 @@ static abuf_t *buffer_get_frame(void) { first_packet_time_to_play = reference_timestamp_time+((delta+(int64_t)config.latency)<<32)/44100; // using the latency requested... if (local_time_now>=first_packet_time_to_play) { - debug(1,"First packet is late! It should have played before now. Flushing..."); - player_flush(first_packet_timestamp); + debug(1,"First packet is late! It should have played before now. Flushing 0.1 seconds"); + player_flush(first_packet_timestamp+4410); } } }