Commit b0b8f87c authored by Konstantin Pavlov's avatar Konstantin Pavlov

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

Follows
http://cgit.freedesktop.org/libva/commit/?id=2822d025263d516bd619c8bbe1d17ff4c1bd1af2
parent 3db43493
...@@ -344,7 +344,11 @@ int VaExtract( vlc_va_t *p_va, picture_t *p_picture, AVFrame *p_ff ) ...@@ -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]; 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 ) )
#else
if( vaSyncSurface( p_va->p_display, p_va->i_context_id, i_surface_id ) ) if( vaSyncSurface( p_va->p_display, p_va->i_context_id, i_surface_id ) )
#endif
return VLC_EGENERIC; return VLC_EGENERIC;
/* XXX vaDeriveImage may be better but it is not supported by /* 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