player_thread: lock the player while setting the bite_rate

This commit is contained in:
Max Kellermann 2011-07-20 18:52:00 +02:00
parent b2175629fd
commit 8fa51faa38

View File

@ -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 */