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,10 +656,10 @@ 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) {
|
||||||
// NOTE: for mpv, to refers to the "gap" right before i
|
// NOTE: for mpv, to refers to the "gap" right before i
|
||||||
|
|
Loading…
Reference in a new issue