]> git.sesse.net Git - vlc/commitdiff
Fixed VA description in avcodec.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 19 Jan 2010 21:30:05 +0000 (22:30 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 20 Jan 2010 00:20:40 +0000 (01:20 +0100)
modules/codec/avcodec/video.c

index 578843687a7863f89d90cb4b64df9dc1ea10e6ae..da15db8bb212a93a52e4de64bedf034b2b218589 100644 (file)
@@ -825,9 +825,6 @@ static int ffmpeg_OpenCodec( decoder_t *p_dec )
 
     p_sys->b_delayed_open = false;
 
-    if( p_sys->p_va && p_sys->p_va->description )
-        msg_Info( p_dec, "Using %s for hardware decoding.", p_sys->p_va->description );
-
     return VLC_SUCCESS;
 }
 /*****************************************************************************
@@ -1155,6 +1152,9 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_codec,
 
         if( p_sys->p_va )
         {
+            if( p_sys->p_va->description )
+                msg_Info( p_dec, "Using %s for hardware decoding.", p_sys->p_va->description );
+
             /* FIXME this will disabled direct rendering
              * even if a new pixel format is renegociated
              */