Commit 8843e92c authored by Jean-Paul Saman's avatar 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.
parent fbb82370
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment