mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-05 19:42:03 +02:00
Update dependencies.
This commit is contained in:
parent
f50fca02ae
commit
a42752af2f
5 changed files with 25 additions and 73 deletions
|
@ -104,7 +104,7 @@ impl AudioFile {
|
|||
break;
|
||||
}
|
||||
|
||||
while bitmap.contains(&index) {
|
||||
while bitmap.contains(index) {
|
||||
index = (index + 1) % shared.chunk_count;
|
||||
}
|
||||
drop(bitmap);
|
||||
|
@ -155,7 +155,7 @@ impl Read for AudioFile {
|
|||
let len = min(output.len(), CHUNK_SIZE - offset);
|
||||
|
||||
let mut bitmap = self.shared.bitmap.lock().unwrap();
|
||||
while !bitmap.contains(&index) {
|
||||
while !bitmap.contains(index) {
|
||||
bitmap = self.shared.cond.wait(bitmap).unwrap();
|
||||
}
|
||||
drop(bitmap);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue