Commit 31872a22 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vmem: unroll sys->unlock check

parent a5b262e2
......@@ -119,9 +119,7 @@ static void Unlock(void *data, picture_t *pic)
for (int i = 0; i < pic->i_planes; i++)
planes[i] = pic->p[i].p_pixels;
if (sys->unlock != NULL)
sys->unlock(sys->opaque, picsys->id, planes);
}
/*****************************************************************************
......@@ -256,6 +254,7 @@ static void Close(vlc_object_t *object)
if (sys->pool)
{
if (sys->unlock != NULL)
picture_pool_Enum(sys->pool, Unlock, sys);
picture_pool_Release(sys->pool);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment