aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-07-20 18:52:00 +0200
committerMax Kellermann <max@duempel.org>2011-07-20 19:04:54 +0200
commit8fa51faa389426f1edd285e20c3ddbdf4aebce71 (patch)
tree9a8a2c2629c254b4cd53b0bfea5fb1486ecc8208 /src
parentb2175629fde13ce58ccb7cd1c4c39b9707225b84 (diff)
downloadmpd-8fa51faa389426f1edd285e20c3ddbdf4aebce71.tar.gz
mpd-8fa51faa389426f1edd285e20c3ddbdf4aebce71.tar.xz
mpd-8fa51faa389426f1edd285e20c3ddbdf4aebce71.zip
player_thread: lock the player while setting the bite_rate
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 */