vlc/vlc-3.0 | branch: master | Marvin Scholz <[email protected]> | 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 <[email protected]> (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]; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
