From 41f47f79f575843f3f0e507ffac5c5e64c674340 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Wed, 17 Jun 2015 18:42:05 +0100 Subject: [PATCH] Tidy up and move packet counter inside mutex. --- player.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/player.c b/player.c index 94afea42..3ae9bac7 100644 --- a/player.c +++ b/player.c @@ -294,9 +294,8 @@ static void free_buffer(void) { void player_put_packet(seq_t seqno, uint32_t timestamp, uint8_t *data, int len) { - packet_count++; - pthread_mutex_lock(&ab_mutex); + packet_count++; time_of_last_audio_packet = get_absolute_time_in_fp(); if (connection_state_to_output) { // if we are supposed to be processing these packets