Fix unexpected timout due to race condition, I think, on the timing.

This commit is contained in:
Mike Brady
2014-10-20 11:55:24 +01:00
parent eef08e4975
commit b64d345892
+1 -2
View File
@@ -298,10 +298,9 @@ static void free_buffer(void) {
void player_put_packet(seq_t seqno,uint32_t timestamp, uint8_t *data, int len) {
packet_count++;
time_of_last_audio_packet = get_absolute_time_in_fp();
pthread_mutex_lock(&ab_mutex);
time_of_last_audio_packet = get_absolute_time_in_fp();
if (connection_state_to_output) { // if we are supposed to be processing these packets
if ((flush_rtp_timestamp!=0x7fffffff) && ((timestamp==flush_rtp_timestamp) || seq32_order(timestamp,flush_rtp_timestamp))) {