mirror of
https://github.com/RustAudio/rodio
synced 2024-11-10 06:04:16 +00:00
Optimistic update to controls.position in try_seek
This commit is contained in:
parent
4805661cd1
commit
2c95f1a00e
1 changed files with 4 additions and 1 deletions
|
@ -238,7 +238,10 @@ impl Sink {
|
|||
}
|
||||
|
||||
match feedback.recv() {
|
||||
Ok(seek_res) => seek_res,
|
||||
Ok(seek_res) => {
|
||||
*self.controls.position.lock().unwrap() = pos;
|
||||
seek_res
|
||||
},
|
||||
// The feedback channel closed. Probably another seekorder was set
|
||||
// invalidating this one and closing the feedback channel
|
||||
// ... or the audio thread panicked.
|
||||
|
|
Loading…
Reference in a new issue