summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-20 19:20:59 +0200
committerwm4 <wm4@nowhere>2014-06-20 19:20:59 +0200
commit745889c68c4746dc7d34746938d8bd3c73d3ac73 (patch)
tree743d21d581c4965ab38e3037caa25d0013c389f7
parentc4f518f132dd0dfc1661fe2f024b6db43224eb9c (diff)
downloadmpv-745889c68c4746dc7d34746938d8bd3c73d3ac73.tar.bz2
mpv-745889c68c4746dc7d34746938d8bd3c73d3ac73.tar.xz
vo_vaapi: fix reference counting when using software decoding
Recent regression.
-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]);