[vlc-commits] commit: VAAPI: call XInitThreads() before XOpenDisplay() ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Mar 3 20:35:48 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Mar 3 21:35:26 2010 +0200| [6adc39614a933e6d7cdc187963532de8573c1312] | committer: Rémi Denis-Courmont
VAAPI: call XInitThreads() before XOpenDisplay()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6adc39614a933e6d7cdc187963532de8573c1312
---
modules/codec/avcodec/vaapi.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
index 176b67f..cdfec2c 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -444,6 +444,9 @@ static void Delete( vlc_va_t *p_external )
/* */
vlc_va_t *vlc_va_NewVaapi( int i_codec_id )
{
+ if( !XInitThreads() )
+ return NULL;
+
vlc_va_vaapi_t *p_va = calloc( 1, sizeof(*p_va) );
if( !p_va )
return NULL;
More information about the vlc-commits
mailing list