diff options
author | wm4 <wm4@nowhere> | 2016-09-08 15:55:47 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-08 16:06:12 +0200 |
commit | c3097422f2e6f5fc687a21022e541a3f16e8ad19 (patch) | |
tree | 9f66d8211ec4e7afdfccb3170104a35cbda274a9 | |
parent | 8bb9632e273e78963af85ab4c4cd275e69d77713 (diff) |
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.)
-rw-r--r-- | video/out/opengl/video.c | 2 |
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); |