mirror of
https://github.com/oSumAtrIX/free-librespot.git
synced 2025-12-19 18:04:20 +00:00
Clear buffer when the sink is stopped
This commit is contained in:
parent
64081a12bb
commit
cbe3c98fa1
1 changed files with 1 additions and 0 deletions
|
|
@ -111,6 +111,7 @@ impl Sink for AlsaSink {
|
||||||
pcm.drain().unwrap();
|
pcm.drain().unwrap();
|
||||||
}
|
}
|
||||||
self.pcm = None;
|
self.pcm = None;
|
||||||
|
self.buffered_data = 0;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue