vo_vaapi: fix reference counting when using software decoding

Recent regression.
This commit is contained in:
wm4 2014-06-20 19:20:59 +02:00
parent c4f518f132
commit 745889c68c
1 changed files with 2 additions and 1 deletions

View File

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