1
0
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:
wm4 2014-06-18 02:13:38 +02:00
parent c048b5db02
commit 8161d45408

View File

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