Commit 8fa51faa authored by Max Kellermann's avatar Max Kellermann

player_thread: lock the player while setting the bite_rate

parent b2175629
...@@ -618,7 +618,9 @@ play_chunk(struct song *song, struct music_chunk *chunk, ...@@ -618,7 +618,9 @@ play_chunk(struct song *song, struct music_chunk *chunk,
return true; return true;
} }
player_lock();
pc.bit_rate = chunk->bit_rate; pc.bit_rate = chunk->bit_rate;
player_unlock();
/* send the chunk to the audio outputs */ /* send the chunk to the audio outputs */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment