From: Laurent Aimar Date: Tue, 19 Jan 2010 21:30:05 +0000 (+0100) Subject: Fixed VA description in avcodec. X-Git-Tag: 1.1.0-ff~1091 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2f184dd51728c0d3c883eaaf526505ffd66ddb38;p=vlc Fixed VA description in avcodec. --- diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c index 578843687a..da15db8bb2 100644 --- a/modules/codec/avcodec/video.c +++ b/modules/codec/avcodec/video.c @@ -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 */