Delay for 0.1 seconds if first packet is late.

This commit is contained in:
Mike Brady
2014-05-27 08:16:43 +01:00
parent af40a978c1
commit d6a69d6f23
+2 -2
View File
@@ -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);
}
}
}