[vlc-commits] ios: remove variable ios-eaglcontext

Alexandre Janniaux git at videolan.org
Thu Jan 28 11:10:23 UTC 2021


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Tue Jan 26 10:37:12 2021 +0100| [d15b3c1c5bb40ae1dec76032fe49e97ae8119812] | committer: Alexandre Janniaux

ios: remove variable ios-eaglcontext

Unused since cb6b1d5fb6c28893479f737a94da2bc753cbe8b9.

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

 modules/video_output/ios.m | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/modules/video_output/ios.m b/modules/video_output/ios.m
index aa43020eed..443c23d417 100644
--- a/modules/video_output/ios.m
+++ b/modules/video_output/ios.m
@@ -169,8 +169,6 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
     vd->sys = sys;
     sys->gl = NULL;
 
-    var_Create(vlc_object_parent(vd), "ios-eaglcontext", VLC_VAR_ADDRESS);
-
     @autoreleasepool {
         /* setup the actual OpenGL ES view */
 
@@ -181,7 +179,6 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
                                              waitUntilDone:YES];
         if (!sys->glESView) {
             msg_Err(vd, "Creating OpenGL ES 2 view failed");
-            var_Destroy(vlc_object_parent(vd), "ios-eaglcontext");
             return VLC_EGENERIC;
         }
 
@@ -255,7 +252,6 @@ static void Close(vout_display_t *vd)
 
         [sys->glESView cleanAndRelease:flushed];
     }
-    var_Destroy(vlc_object_parent(vd), "ios-eaglcontext");
 }
 
 /*****************************************************************************
@@ -396,9 +392,6 @@ static void GLESSwap(vlc_gl_t *gl)
     }
     [self releaseCurrent:previousEaglContext];
 
-    /* Set "ios-eaglcontext" to be used by cvpx fitlers/glconv */
-    var_SetAddress(vlc_object_parent(_voutDisplay), "ios-eaglcontext", _eaglContext);
-
     _layer = (CAEAGLLayer *)self.layer;
     _layer.drawableProperties = [NSDictionary dictionaryWithObject:kEAGLColorFormatRGBA8 forKey: kEAGLDrawablePropertyColorFormat];
     _layer.opaque = YES;



More information about the vlc-commits mailing list