diff options
author | Max Kellermann <max@duempel.org> | 2011-07-20 18:52:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-07-20 19:04:54 +0200 |
commit | 8fa51faa389426f1edd285e20c3ddbdf4aebce71 (patch) | |
tree | 9a8a2c2629c254b4cd53b0bfea5fb1486ecc8208 /src | |
parent | b2175629fde13ce58ccb7cd1c4c39b9707225b84 (diff) | |
download | mpd-8fa51faa389426f1edd285e20c3ddbdf4aebce71.tar.gz mpd-8fa51faa389426f1edd285e20c3ddbdf4aebce71.tar.xz mpd-8fa51faa389426f1edd285e20c3ddbdf4aebce71.zip |
player_thread: lock the player while setting the bite_rate
Diffstat (limited to 'src')
-rw-r--r-- | src/player_thread.c | 2 |
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 */ |