[vlc-commits] vout ios: add missing sanity check

Felix Paul Kühne git at videolan.org
Wed Sep 2 17:28:27 CEST 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Sep  2 17:25:52 2015 +0200| [a1059708cd0c88aae08fa8dba19e75ee931f98db] | committer: Felix Paul Kühne

vout ios: add missing sanity check

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

 modules/video_output/ios2.m |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
index 8e3be0b..f58f5ce 100644
--- a/modules/video_output/ios2.m
+++ b/modules/video_output/ios2.m
@@ -370,9 +370,11 @@ void Close (vlc_object_t *this)
 
     [sys->glESView release];
 
-    if (sys->picturePool)
-        picture_pool_Release(sys->picturePool);
-    sys->picturePool = NULL;
+    if (sys->zero_copy) {
+        if (sys->picturePool)
+            picture_pool_Release(sys->picturePool);
+        sys->picturePool = NULL;
+    }
 
     free(sys);
 }



More information about the vlc-commits mailing list