vlc/vlc-3.0 | branch: master | Thomas Guillem <tho...@gllm.fr> | Tue Mar  6 
16:55:27 2018 +0100| [135d4d86c9c39cf6a44d8f624dcddf7f1d7f6fff] | committer: 
Thomas Guillem

vout: ios: remove useless var creation

(cherry picked from commit 99e9fecab0fcc8233de0bc2eda65147ac96b2774)
Signed-off-by: Thomas Guillem <tho...@gllm.fr>

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

 modules/video_output/ios.m | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/video_output/ios.m b/modules/video_output/ios.m
index 4331aa734e..7c761b5e6a 100644
--- a/modules/video_output/ios.m
+++ b/modules/video_output/ios.m
@@ -235,8 +235,6 @@ static void Close (vlc_object_t *this)
     vout_display_sys_t *sys = vd->sys;
 
     @autoreleasepool {
-        var_Destroy (vd, "drawable-nsobject");
-
         if (sys->gl != NULL) {
             struct gl_sys *glsys = sys->gl->sys;
             msg_Dbg(this, "deleting display");
@@ -449,7 +447,7 @@ static void GLESSwap(vlc_gl_t *gl)
 {
     @try {
         /* get the object we will draw into */
-        UIView *viewContainer = var_CreateGetAddress (_voutDisplay, 
"drawable-nsobject");
+        UIView *viewContainer = var_InheritAddress (_voutDisplay, 
"drawable-nsobject");
         if (unlikely(viewContainer == nil)) {
             msg_Err(_voutDisplay, "provided view container is nil");
             return NO;

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to