From c3097422f2e6f5fc687a21022e541a3f16e8ad19 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 8 Sep 2016 15:55:47 +0200 Subject: 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.) --- video/out/opengl/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/opengl/video.c') 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); -- cgit v1.2.3