[libbluray-devel] HBackgroundImage(): accept null pixels
hpi1
git at videolan.org
Mon Apr 18 14:14:32 CEST 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Apr 18 12:22:29 2016 +0300| [1b910c0cfd33891f80f46ae0b008b075ccf152e8] | committer: hpi1
HBackgroundImage(): accept null pixels
Quick-fix for Spider Man 2
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=1b910c0cfd33891f80f46ae0b008b075ccf152e8
---
src/libbluray/bdj/java/org/havi/ui/HBackgroundImage.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/libbluray/bdj/java/org/havi/ui/HBackgroundImage.java b/src/libbluray/bdj/java/org/havi/ui/HBackgroundImage.java
index 84a5fff..125fa93 100644
--- a/src/libbluray/bdj/java/org/havi/ui/HBackgroundImage.java
+++ b/src/libbluray/bdj/java/org/havi/ui/HBackgroundImage.java
@@ -40,6 +40,10 @@ public class HBackgroundImage implements ImageObserver {
}
public HBackgroundImage(byte pixels[]) {
+ if (pixels == null) {
+ System.err.println("null pixels from " + org.videolan.Logger.dumpStack());
+ return;
+ }
producer = new ByteArrayImageSource(pixels);
img = Toolkit.getDefaultToolkit().createImage(producer);
}
More information about the libbluray-devel
mailing list