[vlc-devel] commit: VAAPI: for libva >= 0.31.0 remove context from vaSyncSurface. ( Konstantin Pavlov )
git version control
git at videolan.org
Fri Oct 16 09:44:28 CEST 2009
vlc | branch: master | Konstantin Pavlov <thresh at altlinux.org> | Fri Oct 9 12:36:14 2009 +0400| [b0b8f87ce4148791a8ccf5f71f335722a20e9853] | committer: Konstantin Pavlov
VAAPI: for libva >= 0.31.0 remove context from vaSyncSurface.
Follows
http://cgit.freedesktop.org/libva/commit/?id=2822d025263d516bd619c8bbe1d17ff4c1bd1af2
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0b8f87ce4148791a8ccf5f71f335722a20e9853
---
modules/codec/avcodec/vaapi.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
index a9d4c6f..05a82c3 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -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 ) )
+#else
if( vaSyncSurface( p_va->p_display, p_va->i_context_id, i_surface_id ) )
+#endif
return VLC_EGENERIC;
/* XXX vaDeriveImage may be better but it is not supported by
More information about the vlc-devel
mailing list