summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-08 15:55:47 +0200
committerwm4 <wm4@nowhere>2016-09-08 16:06:12 +0200
commitc3097422f2e6f5fc687a21022e541a3f16e8ad19 (patch)
tree9f66d8211ec4e7afdfccb3170104a35cbda274a9 /video/out/opengl/video.c
parent8bb9632e273e78963af85ab4c4cd275e69d77713 (diff)
downloadmpv-c3097422f2e6f5fc687a21022e541a3f16e8ad19.tar.bz2
mpv-c3097422f2e6f5fc687a21022e541a3f16e8ad19.tar.xz
vo_opengl: use dedicated image unref function in config case
Just another corner-caseish potential issue. Unlike unreffing the image manually, unref_current_image() also takes care of properly unmapping hwdec frames. (The corner-case part of this is that it's probably never mapped at this point, but it's apparently not entirely guaranteed.)
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index fa9ef41ef0..d54858bd7e 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -3378,7 +3378,7 @@ bool gl_video_check_format(struct gl_video *p, int mp_format)
void gl_video_config(struct gl_video *p, struct mp_image_params *params)
{
- mp_image_unrefp(&p->image.mpi);
+ unref_current_image(p);
if (!mp_image_params_equal(&p->real_image_params, params)) {
uninit_video(p);