From 15d54d339dcf80f52897 77cc45a89377fcac27cf Mon Sep 17 00 00 00 200

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 15d54d339dcf80f5289777cc45a89377fcac27cf Mon Sep 17 00:00:00 2001
From: Konstantin Pavlov <thresh@altlinux.org>
Date: Fri, 9 Oct 2009 12:36:14 +0400
Subject: [PATCH 2/2] VAAPI: remove context from vaSyncSurface.
Follows
http://cgit.freedesktop.org/libva/commit/?id=2822d025263d516bd619c8bbe1d17ff4c1bd1af2
---
modules/codec/avcodec/vaapi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
index a9d4c6f..e8f4fc6 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -344,7 +344,7 @@ 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( vaSyncSurface( p_va->p_display, p_va->i_context_id, i_surface_id ) )
+ if( vaSyncSurface( p_va->p_display, i_surface_id ) )
return VLC_EGENERIC;
/* XXX vaDeriveImage may be better but it is not supported by
--
1.6.4.4