[libbluray-devel] BDJLoader: close players at unload

hpi1 git at videolan.org
Fri Apr 25 10:47:13 CEST 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Apr 25 11:33:56 2014 +0300| [1290a991c1c020e4773d6a104c4df6cff1cc2607] | committer: hpi1

BDJLoader: close players at unload

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

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

diff --git a/src/libbluray/bdj/java/org/videolan/BDJLoader.java b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
index dfddcbb..8f21cc9 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJLoader.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
@@ -39,6 +39,7 @@ import org.videolan.bdjo.Bdjo;
 import org.videolan.bdjo.GraphicsResolution;
 import org.videolan.bdjo.PlayListTable;
 import org.videolan.bdjo.TerminalInfo;
+import org.videolan.media.content.PlayerManager;
 
 public class BDJLoader {
     public static boolean load(int title) {
@@ -237,6 +238,8 @@ public class BDJLoader {
 
             ((BDJAppsDatabase)db).newDatabase(null, null);
 
+            PlayerManager.getInstance().releaseAllPlayers(true);
+
             //GUIManager.shutdown() does not work with J2ME (window can't be opened again)
             GUIManager.getInstance().setVisible(false);
 



More information about the libbluray-devel mailing list