actually, notify on playback restart instead
This commit is contained in:
parent
3f10dbc102
commit
d1da88922f
1 changed files with 2 additions and 1 deletions
|
@ -310,6 +310,7 @@ mod imp {
|
||||||
Event::PlaybackRestart => {
|
Event::PlaybackRestart => {
|
||||||
event!(Level::INFO, "playback restart event");
|
event!(Level::INFO, "playback restart event");
|
||||||
window.imp().buffering_end();
|
window.imp().buffering_end();
|
||||||
|
self.notify("time-pos");
|
||||||
|
|
||||||
if let Some(queued_seek) = window.imp().queued_seek.take() {
|
if let Some(queued_seek) = window.imp().queued_seek.take() {
|
||||||
// a seek was tried before and failed, try again now
|
// a seek was tried before and failed, try again now
|
||||||
|
@ -655,9 +656,9 @@ impl Window {
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
event!(Level::INFO, "queuing seek to {new_position}: {err}");
|
event!(Level::INFO, "queuing seek to {new_position}: {err}");
|
||||||
self.imp().queued_seek.set(Some(new_position));
|
self.imp().queued_seek.set(Some(new_position));
|
||||||
|
self.notify("time-pos");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.notify("time-pos");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn playlist_move(&self, from: u32, to: u32) {
|
pub fn playlist_move(&self, from: u32, to: u32) {
|
||||||
|
|
Loading…
Reference in a new issue