[vlc-commits] vout/ios: Remove unnecessary nil check
    Marvin Scholz 
    git at videolan.org
       
    Wed Jan 23 19:56:55 CET 2019
    
    
  
vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Jan 18 18:52:39 2019 +0100| [851de048ba06af79b3d3a006eafe8eb21da41915] | committer: Felix Paul Kühne
vout/ios: Remove unnecessary nil check
Sending a message to nil is valid, which makes this check
unnecessary.
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
(cherry picked from commit 405780b018ef941dba9b3d3bf17d6852e40ca8e4)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=851de048ba06af79b3d3a006eafe8eb21da41915
---
 modules/video_output/ios.m | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/video_output/ios.m b/modules/video_output/ios.m
index 12d0985fb9..7452231d8d 100644
--- a/modules/video_output/ios.m
+++ b/modules/video_output/ios.m
@@ -418,8 +418,7 @@ static void GLESSwap(vlc_gl_t *gl)
     if (unlikely(!_eaglContext)
      || unlikely(![EAGLContext setCurrentContext:_eaglContext]))
     {
-        if (_eaglContext)
-            [_eaglContext release];
+        [_eaglContext release];
         vlc_mutex_destroy(&_mutex);
         vlc_cond_destroy(&_gl_attached_wait);
         [super dealloc];
    
    
More information about the vlc-commits
mailing list