[libbluray-devel] Check for null

hpi1 git at videolan.org
Fri Oct 9 11:34:46 CEST 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Oct  9 12:26:03 2015 +0300| [df059a99a9dc1fe316e206c2cc94931abd683f39] | committer: hpi1

Check for null

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

 .../content/playlist/BackgroundVideoPresentationControlImpl.java     |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libbluray/bdj/java/org/videolan/media/content/playlist/BackgroundVideoPresentationControlImpl.java b/src/libbluray/bdj/java/org/videolan/media/content/playlist/BackgroundVideoPresentationControlImpl.java
index 6982eac..21f6de5 100644
--- a/src/libbluray/bdj/java/org/videolan/media/content/playlist/BackgroundVideoPresentationControlImpl.java
+++ b/src/libbluray/bdj/java/org/videolan/media/content/playlist/BackgroundVideoPresentationControlImpl.java
@@ -53,6 +53,8 @@ public class BackgroundVideoPresentationControlImpl extends VideoControl
     }
 
     public boolean setVideoTransformation(VideoTransformation transform) {
+        if (transform == null)
+            return false;
         setClipRegion(transform.getClipRegion());
         HScreenPoint pos = transform.getVideoPosition();
         float[] scales = transform.getScalingFactors();



More information about the libbluray-devel mailing list