mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 13:14:36 +00:00
gl_video: fix refcounting
This commit is contained in:
parent
c048b5db02
commit
8161d45408
@ -1726,6 +1726,7 @@ void gl_video_upload_image(struct gl_video *p, struct mp_image *mpi)
|
||||
p->osd_pts = mpi->pts;
|
||||
|
||||
if (p->hwdec_active) {
|
||||
talloc_free(vimg->hwimage);
|
||||
vimg->hwimage = mpi;
|
||||
p->have_image = true;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user