aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player_thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index cce51c1a7..a89e59908 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -618,7 +618,9 @@ play_chunk(struct song *song, struct music_chunk *chunk,
return true;
}
+ player_lock();
pc.bit_rate = chunk->bit_rate;
+ player_unlock();
/* send the chunk to the audio outputs */