aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player_thread.c')
-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 d47c5c851..58682f2ca 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -628,7 +628,9 @@ play_chunk(struct player_control *pc,
return true;
}
+ player_lock(pc);
pc->bit_rate = chunk->bit_rate;
+ player_unlock(pc);
/* send the chunk to the audio outputs */