[libbluray-devel] [Git][videolan/libbluray][master] hdmv: end button command execution after a link command

Petri Hintukainen (@hpi) gitlab at videolan.org
Sat Nov 14 07:06:04 UTC 2026



Petri Hintukainen pushed to branch master at VideoLAN / libbluray


Commits:
1398cc90 by Martin Penkava at 2026-11-13T21:55:12+01:00
hdmv: end button command execution after a link command

LinkPI / LinkMK only queued the jump and execution continued with the
next button command. Discs put a fallback after the link, e.g.
"LinkMK r0; JumpTitle 1" in a chapter menu, so the jump to the chapter
was immediately replaced by restarting the title.

Terminate the button commands after queuing the link, like BREAK does.

- - - - -


1 changed file:

- src/libbluray/hdmv/hdmv_vm.c


Changes:

=====================================
src/libbluray/hdmv/hdmv_vm.c
=====================================
@@ -685,6 +685,9 @@ static int _link_at(HDMV_VM *p, int playitem, int playmark)
         _queue_event(p, HDMV_EVENT_PLAY_PM, playmark);
     }
 
+    /* link commands end the execution of button commands (like BREAK) */
+    p->pc = 1 << 17;
+
     return 0;
 }
 



View it on GitLab: https://code.videolan.org/videolan/libbluray/-/commit/1398cc90e2334a207defd4c2f80f1970418a320c

-- 
View it on GitLab: https://code.videolan.org/videolan/libbluray/-/commit/1398cc90e2334a207defd4c2f80f1970418a320c
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the libbluray-devel mailing list