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.)
This commit is contained in:
wm4 2016-09-08 15:55:47 +02:00
parent 8bb9632e27
commit c3097422f2
1 changed files with 1 additions and 1 deletions

View File

@ -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);