[vlc-commits] vout: ios: remove useless var creation
Thomas Guillem
git at videolan.org
Wed Mar 7 15:34:16 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 6 16:55:27 2018 +0100| [99e9fecab0fcc8233de0bc2eda65147ac96b2774] | committer: Thomas Guillem
vout: ios: remove useless var creation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=99e9fecab0fcc8233de0bc2eda65147ac96b2774
---
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;
More information about the vlc-commits
mailing list