[vlc-commits] [Git][videolan/vlc][master] vout: release decoder device when opengl module load fails
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Dec 20 06:03:25 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
cac68167 by Maxime Chapelet at 2024-12-20T05:50:06+00:00
vout: release decoder device when opengl module load fails
Decoder device must be released if module load fails else the decoder device
is still held causing a memory leak when the vout thread is released.
- - - - -
1 changed file:
- src/video_output/opengl.c
Changes:
=====================================
src/video_output/opengl.c
=====================================
@@ -156,6 +156,8 @@ vlc_gl_t *vlc_gl_CreateOffscreen(vlc_object_t *parent,
vlc_gl_start, gl, width, height, gl_cfg);
if (gl->module == NULL)
{
+ if (gl->device)
+ vlc_decoder_device_Release(gl->device);
vlc_object_delete(gl);
return NULL;
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cac68167eb562b4e74777bcedc686cd797f6325c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cac68167eb562b4e74777bcedc686cd797f6325c
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