signal correct play pos to OS when switching back to MPV player

This commit is contained in:
Drew Weymouth
2025-03-29 16:03:27 -07:00
parent f9c9f290bd
commit a0c97f0be1
+1 -1
View File
@@ -496,7 +496,7 @@ func (p *Player) eventHandler(ctx context.Context) {
} }
switch e.Event_Id { switch e.Event_Id {
case mpv.EVENT_PLAYBACK_RESTART: case mpv.EVENT_PLAYBACK_RESTART:
p.seeking = false fallthrough
case mpv.EVENT_SEEK: case mpv.EVENT_SEEK:
p.seeking = false p.seeking = false
p.InvokeOnSeek() p.InvokeOnSeek()