[vlc-commits] [Git][videolan/vlc][master] android: remove reverse NULL check

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Wed May 11 07:02:38 UTC 2022



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
24246e4e by Rémi Denis-Courmont at 2022-05-11T06:31:24+00:00
android: remove reverse NULL check

This code is useless as the window cannot be NULL, and it was already
optimised out.

- - - - -


1 changed file:

- modules/video_output/android/display.c


Changes:

=====================================
modules/video_output/android/display.c
=====================================
@@ -491,8 +491,6 @@ static int Open(vout_display_t *vd,
     if (embed->type != VOUT_WINDOW_TYPE_ANDROID_NATIVE)
         return VLC_EGENERIC;
 
-    if (embed == NULL)
-        return VLC_EGENERIC;
     assert(embed->handle.anativewindow);
     AWindowHandler *p_awh = embed->handle.anativewindow;
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/24246e4efb1730cfa1919faec2056c6e6f2bfc54

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/24246e4efb1730cfa1919faec2056c6e6f2bfc54
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list