Tidy up and move packet counter inside mutex.

This commit is contained in:
Mike Brady
2015-06-17 18:42:05 +01:00
parent 2a1fe7afed
commit 41f47f79f5
+1 -2
View File
@@ -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