[libbluray-devel] BDRootWindow: close overlay in sync() when window is not visible

hpi1 git at videolan.org
Tue Aug 9 11:13:58 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Aug  9 12:08:50 2016 +0300| [16c24ff71607178d331b0bd940ee4414a081e915] | committer: hpi1

BDRootWindow: close overlay in sync() when window is not visible

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

 src/libbluray/bdj/java/java/awt/BDRootWindow.java | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/libbluray/bdj/java/java/awt/BDRootWindow.java b/src/libbluray/bdj/java/java/awt/BDRootWindow.java
index ff9b257..4c4f815 100644
--- a/src/libbluray/bdj/java/java/awt/BDRootWindow.java
+++ b/src/libbluray/bdj/java/java/awt/BDRootWindow.java
@@ -115,6 +115,15 @@ public class BDRootWindow extends Frame {
             }
             changeCount = 0;
 
+            if (!isVisible()) {
+                if (overlay_open) {
+                    logger.info("sync(): close OSD (not visible)");
+                    close();
+                }
+                logger.info("sync() ignored (not visible)");
+                return;
+            }
+
             Area a = dirty.getBounds();
             dirty.clear();
 



More information about the libbluray-devel mailing list