[libbluray-devel] Make sure BD-J window is set hidden before GUIManager instance is disposed

tourettes git at videolan.org
Fri Apr 25 14:42:08 CEST 2014


libbluray | branch: master | tourettes <tourettes at team-mediaportal.com> | Mon Apr 14 21:20:08 2014 +0300| [b00e214921e80fbcfcaf308a27e017387dddc46a] | committer: hpi1

Make sure BD-J window is set hidden before GUIManager instance is disposed

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

 src/libbluray/bdj/java/org/videolan/BDJLoader.java |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJLoader.java b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
index 8f21cc9..cfd624a 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJLoader.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
@@ -219,6 +219,8 @@ public class BDJLoader {
 
     private static boolean unloadN() {
         try {
+            GUIManager.getInstance().setVisible(false);
+
             AppsDatabase db = AppsDatabase.getAppsDatabase();
 
             /* stop xlets first */
@@ -240,9 +242,6 @@ public class BDJLoader {
 
             PlayerManager.getInstance().releaseAllPlayers(true);
 
-            //GUIManager.shutdown() does not work with J2ME (window can't be opened again)
-            GUIManager.getInstance().setVisible(false);
-
             return true;
         } catch (Throwable e) {
             logger.error("unloadN() failed: " + e);



More information about the libbluray-devel mailing list