[vlc-devel] commit: Fixed vlc_va_Setup (vaapi). (Laurent Aimar )

git version control git at videolan.org
Wed Nov 25 22:30:46 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Nov 14 22:16:12 2009 +0100| [c4ef9658d0d33dcb42f811ae1261ff8fe2eda878] | committer: Laurent Aimar 

Fixed vlc_va_Setup (vaapi).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c4ef9658d0d33dcb42f811ae1261ff8fe2eda878
---

 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 8c2b26b..cb2a39a 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -300,7 +300,11 @@ static int Setup( vlc_va_t *p_external, void **pp_hw_ctx, vlc_fourcc_t *pi_chrom
 
     if( p_va->i_surface_width == i_width &&
         p_va->i_surface_height == i_height )
+    {
+        *pp_hw_ctx = &p_va->hw_ctx;
+        *pi_chroma = p_va->i_surface_chroma;
         return VLC_SUCCESS;
+    }
 
     *pp_hw_ctx = NULL;
     *pi_chroma = 0;




More information about the vlc-devel mailing list