[vlc-commits] iOS vout: fix runtime exception (closes #14800)

Felix Paul Kühne git at videolan.org
Fri Jun 5 17:07:56 CEST 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Jun  5 17:07:34 2015 +0200| [1e2a57c3c524e402e6485fbc19f89ec4ed3508cf] | committer: Felix Paul Kühne

iOS vout: fix runtime exception (closes #14800)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1e2a57c3c524e402e6485fbc19f89ec4ed3508cf
---

 modules/video_output/ios2.m |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
index 34f9318..425d2c8 100644
--- a/modules/video_output/ios2.m
+++ b/modules/video_output/ios2.m
@@ -139,7 +139,10 @@ static int Open(vlc_object_t *this)
 
     /* get the object we will draw into */
     UIView* viewContainer = var_CreateGetAddress (vd, "drawable-nsobject");
-    if (!viewContainer || ![viewContainer isKindOfClass:[UIView class]])
+    if (!viewContainer)
+        goto bailout;
+
+    if (![viewContainer isKindOfClass:[UIView class]])
         goto bailout;
 
     /* This will be released in Close(), on



More information about the vlc-commits mailing list