summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/vo_vaapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c
index caf383c3f4..16218dd98c 100644
--- a/video/out/vo_vaapi.c
+++ b/video/out/vo_vaapi.c
@@ -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]);