mirror of https://github.com/mpv-player/mpv
vo_vaapi: fix reference counting when using software decoding
Recent regression.
This commit is contained in:
parent
c4f518f132
commit
745889c68c
|
@ -284,7 +284,8 @@ static void draw_image(struct vo *vo, struct mp_image *mpi)
|
|||
return;
|
||||
}
|
||||
mp_image_copy_attributes(dst, mpi);
|
||||
mpi = dst;
|
||||
talloc_free(mpi);
|
||||
mpi = mp_image_new_ref(dst);
|
||||
}
|
||||
|
||||
talloc_free(p->output_surfaces[p->output_surface]);
|
||||
|
|
Loading…
Reference in New Issue