[vlc-commits] [Git][videolan/vlc][master] android: window: add missing error checking
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Feb 8 10:21:02 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
f1838135 by Alexandre Janniaux at 2024-02-08T10:01:38+00:00
android: window: add missing error checking
The device could store a NULL AWindowHandler in case of allocation
failure or failure to get the jvm pointer.
- - - - -
1 changed file:
- modules/video_output/android/window.c
Changes:
=====================================
modules/video_output/android/window.c
=====================================
@@ -113,9 +113,15 @@ OpenDecDevice(vlc_decoder_device *device, vlc_window_t *window)
{
AWindowHandler *awh;
if (window && window->type == VLC_WINDOW_TYPE_ANDROID_NATIVE)
+ {
awh = window->display.anativewindow;
+ }
else
+ {
awh = AWindowHandler_new(VLC_OBJECT(device), NULL, NULL);
+ if (awh == NULL)
+ return VLC_ENOMEM;
+ }
static const struct vlc_decoder_device_operations ops =
{
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f1838135b70b18e2e6fde6cb9499da6c32459403
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f1838135b70b18e2e6fde6cb9499da6c32459403
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