Optimistic update to controls.position in try_seek

This commit is contained in:
taro 2024-09-05 02:53:47 -03:00
parent 4805661cd1
commit 2c95f1a00e

View file

@ -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.