Commit 99dc2c3a authored by Jean-Paul Saman's avatar Jean-Paul Saman

VAAPI: remove useless variable

parent 02afcb88
......@@ -247,9 +247,8 @@ static int CreateDecodingContext( vlc_va_vaapi_t *p_va, void **pp_hw_ctx, vlc_fo
p_va->conn->lock();
/* Create surfaces */
int i_count = p_va->i_surface_count;
VASurfaceID *pi_surface_id = CreateSurfaces( p_va->conn, i_width, i_height,
VA_RT_FORMAT_YUV420, i_count );
VA_RT_FORMAT_YUV420, p_va->i_surface_count );
if( pi_surface_id == NULL )
{
p_va->i_surface_count = 0;
......
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