mirror of https://github.com/mpv-player/mpv
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:
parent
8bb9632e27
commit
c3097422f2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue