gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r12083: Fix compilation without VAAP


From: Markus Gothe
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r12083: Fix compilation without VAAPI
Date: Fri, 19 Mar 2010 22:14:13 +0100
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 12083
committer: Markus Gothe <address@hidden>
branch nick: trunk
timestamp: Fri 2010-03-19 22:14:13 +0100
message:
  Fix compilation without VAAPI
modified:
  libmedia/ffmpeg/VideoDecoderFfmpeg.cpp
=== modified file 'libmedia/ffmpeg/VideoDecoderFfmpeg.cpp'
--- a/libmedia/ffmpeg/VideoDecoderFfmpeg.cpp    2010-03-02 23:26:48 +0000
+++ b/libmedia/ffmpeg/VideoDecoderFfmpeg.cpp    2010-03-19 21:14:13 +0000
@@ -85,13 +85,19 @@
 static inline VaapiContextFfmpeg *
 get_vaapi_context(AVCodecContext *avctx)
 {
+#if USE_VAAPI  
     return static_cast<VaapiContextFfmpeg *>(avctx->hwaccel_context);
+#else
+       return NULL;
+#endif
 }
 
 static inline void
 set_vaapi_context(AVCodecContext *avctx, VaapiContextFfmpeg *vactx)
 {
+#if USE_VAAPI  
     avctx->hwaccel_context = vactx;
+#endif
 }
 
 static inline void


reply via email to

[Prev in Thread] Current Thread [Next in Thread]