Commit e20f4c9d authored by Jean-Paul Saman's avatar Jean-Paul Saman

VAAPI: va.c: use the requested amount of surfaces and examine the return result.

parent d90bd796
...@@ -83,7 +83,7 @@ static VASurfaceID *vlc_va_create_surfaces( vlc_va_conn_t *conn, ...@@ -83,7 +83,7 @@ static VASurfaceID *vlc_va_create_surfaces( vlc_va_conn_t *conn,
int i_surface_count = num; int i_surface_count = num;
VAStatus status = vaCreateSurfaces( conn->p_display, width, height, fourcc, VAStatus status = vaCreateSurfaces( conn->p_display, width, height, fourcc,
num, p_surfaces ); i_surface_count, p_surfaces );
if( status != VA_STATUS_SUCCESS ) if( status != VA_STATUS_SUCCESS )
{ {
free( p_surfaces ); free( p_surfaces );
......
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