[libbluray-devel] TitleContext: force restarting of service bound Xlets when title changes
hpi1
git at videolan.org
Thu Oct 29 13:03:29 CET 2015
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Oct 29 13:39:19 2015 +0200| [ad34e2c680d5016a621791abc0d018746f2a4c93] | committer: hpi1
TitleContext: force restarting of service bound Xlets when title changes
Fixes multiple discs (Cabin in the Woods, The Grand Budapest Hotel, Birdman, ...)
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=ad34e2c680d5016a621791abc0d018746f2a4c93
---
.../bdj/java/org/bluray/ti/selection/TitleContextImpl.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/libbluray/bdj/java/org/bluray/ti/selection/TitleContextImpl.java b/src/libbluray/bdj/java/org/bluray/ti/selection/TitleContextImpl.java
index 0109d2b..256e88e 100644
--- a/src/libbluray/bdj/java/org/bluray/ti/selection/TitleContextImpl.java
+++ b/src/libbluray/bdj/java/org/bluray/ti/selection/TitleContextImpl.java
@@ -78,6 +78,12 @@ public class TitleContextImpl implements TitleContext {
if (state == STATE_DESTROYED)
throw new IllegalStateException();
+
+ if (!restart && (this.title == null || !title.equals(this.title))) {
+ /* force restarting of service bound Xlets when title changes */
+ restart = true;
+ }
+
TitleStartAction action = new TitleStartAction(this, (TitleImpl)title);
if (!BDJLoader.load((TitleImpl)title, restart, action))
action.loaderDone(false);
More information about the libbluray-devel
mailing list