Commit 9f211171 authored by Jean-Paul Saman's avatar Jean-Paul Saman

VAAPI-X11: Surfaces are created and destroyed by a pool shared between decoder and video output.

The PictureRelease function destroyed the Surface as it needed to do when there was no
shared pool of surfaces. However now a shared pool of surfaces is used and the PictureRelease
function should not destroy it anymore.
parent 297c1018
...@@ -1290,11 +1290,6 @@ static void PictureRelease(picture_t *picture) ...@@ -1290,11 +1290,6 @@ static void PictureRelease(picture_t *picture)
} }
surface->i_cache = VA_INVALID_ID; surface->i_cache = VA_INVALID_ID;
/* */
vd->sys->conn->lock();
vaDestroySurfaces(vd->sys->conn->p_display, &picture->p_sys->i_id, 1);
vd->sys->conn->unlock();
} }
free(picture->p_sys); free(picture->p_sys);
......
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