mp_image: fix vf_vdpaupp references

Some code called by vf_vdpaupp.c calls mp_image_new_custom_ref(), but
out of convenience doesn't reset the buffers. Make this behavior ok.
(The assert() was there to catch usage errors, but the same error could
already happen before the refcount changes were made, so the check is
not overly helpful.)

Fixes #2115.
This commit is contained in:
wm4 2015-07-08 14:48:17 +02:00
parent db2268d5b1
commit d2c05cb559
1 changed files with 0 additions and 2 deletions

View File

@ -241,8 +241,6 @@ struct mp_image *mp_image_new_dummy_ref(struct mp_image *img)
struct mp_image *mp_image_new_custom_ref(struct mp_image *img, void *free_arg,
void (*free)(void *arg))
{
assert(!img->bufs[0]);
struct mp_image *new = mp_image_new_dummy_ref(img);
struct free_args *args = talloc_ptrtype(NULL, args);