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

vmem: unlock before display

The documentation promises that the picture is unlocked before it is
displayed, so actually do that.
parent 4e63463a
...@@ -303,11 +303,13 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned count) ...@@ -303,11 +303,13 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned count)
static void Display(vout_display_t *vd, picture_t *picture, subpicture_t *subpicture) static void Display(vout_display_t *vd, picture_t *picture, subpicture_t *subpicture)
{ {
vout_display_sys_t *sys = vd->sys; vout_display_sys_t *sys = vd->sys;
void *id = picture->p_sys->id;
assert(!picture_IsReferenced(picture)); assert(!picture_IsReferenced(picture));
if (sys->display != NULL)
sys->display(sys->opaque, picture->p_sys->id);
picture_Release(picture); picture_Release(picture);
if (sys->display != NULL)
sys->display(sys->opaque, id);
VLC_UNUSED(subpicture); VLC_UNUSED(subpicture);
} }
......
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