summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-03 22:37:39 +0100
committerwm4 <wm4@nowhere>2014-12-03 23:01:19 +0100
commit19f9a7066ea3c5ca9c185e902465bd40bda4883c (patch)
treeecebaaead0a80069d6cd8cfaff4ab6508c14d432 /video/out/gl_video.c
parent920512d358221effa851da8a64fd26a54d154605 (diff)
downloadmpv-19f9a7066ea3c5ca9c185e902465bd40bda4883c.tar.bz2
mpv-19f9a7066ea3c5ca9c185e902465bd40bda4883c.tar.xz
vo_opengl: make uninit idempotent
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r--video/out/gl_video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index d2d0c2e571..07ba0bd602 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -2197,6 +2197,9 @@ static int init_gl(struct gl_video *p)
void gl_video_uninit(struct gl_video *p)
{
+ if (!p)
+ return;
+
GL *gl = p->gl;
uninit_video(p);