player_thread: lock the player while setting the bite_rate
This commit is contained in:
parent
b2175629fd
commit
8fa51faa38
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user