[libbluray-devel] Xlet can't change current disc ID

hpi1 git at videolan.org
Fri Feb 26 23:40:29 CET 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Feb 26 23:52:51 2016 +0200| [61835cf61f173330fe9199883fedbf7661e12714] | committer: hpi1

Xlet can't change current disc ID

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=61835cf61f173330fe9199883fedbf7661e12714
---

 src/libbluray/bdj/java/org/bluray/ti/DiscManager.java |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/org/bluray/ti/DiscManager.java b/src/libbluray/bdj/java/org/bluray/ti/DiscManager.java
index 2e30af9..c43f472 100644
--- a/src/libbluray/bdj/java/org/bluray/ti/DiscManager.java
+++ b/src/libbluray/bdj/java/org/bluray/ti/DiscManager.java
@@ -49,7 +49,11 @@ public class DiscManager {
     }
 
     public void setCurrentDisc(String id) {
-        disc = new DiscImpl(id);
+        if (org.videolan.BDJXletContext.getCurrentContext() == null) {
+            disc = new DiscImpl(id);
+        } else {
+            System.err.println("Ignoring disc ID (from Xlet)");
+        }
     }
 
     private LinkedList listeners = new LinkedList();



More information about the libbluray-devel mailing list