mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +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();
|
||||
}
|
||||
self.pcm = None;
|
||||
self.buffered_data = 0;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue