[vlc-commits] avcodec/video.c: correct error message when vlc_va_Get() fails.
Jean-Paul Saman
git at videolan.org
Thu Jun 20 13:22:57 CEST 2013
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Thu Jun 20 11:17:22 2013 +0200| [8843e92cfa481ae6ef1d2534ca362a52d3179c63] | committer: Jean-Paul Saman
avcodec/video.c: correct error message when vlc_va_Get() fails.
When calling vlc_va_Get() failed inside ffmpeg_GetFrameBuf(), then
the error messages says "vaGrabSurface failed" however it should
say "vlc_va_Get failed". Since hw accelerators are called through a
vlc abstraction defined in va.h. It originated from libva (VAAPI),
but it includes VDPAU and DXVA2 now.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8843e92cfa481ae6ef1d2534ca362a52d3179c63
---
modules/codec/avcodec/video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 4738e52..2b55e89 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -906,7 +906,7 @@ static int ffmpeg_va_GetFrameBuf( struct AVCodecContext *p_context, AVFrame *p_f
if( vlc_va_Get( p_va, p_ff_pic ) )
{
- msg_Err( p_dec, "VaGrabSurface failed" );
+ msg_Err( p_dec, "vlc_va_Get failed" );
return -1;
}
More information about the vlc-commits
mailing list