Commit b0b8f87c authored by Konstantin Pavlov's avatar Konstantin Pavlov
Browse files

VAAPI: for libva >= 0.31.0 remove context from vaSyncSurface.

parent 3db43493
......@@ -344,7 +344,11 @@ int VaExtract( vlc_va_t *p_va, picture_t *p_picture, AVFrame *p_ff )
VASurfaceID i_surface_id = (VASurfaceID)(uintptr_t)p_ff->data[3];
#if VA_CHECK_VERSION(0,31,0)
if( vaSyncSurface( p_va->p_display, i_surface_id ) )
if( vaSyncSurface( p_va->p_display, p_va->i_context_id, i_surface_id ) )
/* XXX vaDeriveImage may be better but it is not supported by
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