Remove warning, when building without vdpau.

This commit is contained in:
Johns 2011-12-30 21:50:58 +01:00
parent 12bfab3f10
commit 0c7170989d
1 changed files with 10 additions and 10 deletions

View File

@ -5941,6 +5941,7 @@ struct vaapi_context *VideoGetVaapiContext(VideoHwDecoder * decoder)
return NULL;
}
#ifdef USE_VDPAU
///
/// Draw ffmpeg vdpau render state.
///
@ -5950,7 +5951,6 @@ struct vaapi_context *VideoGetVaapiContext(VideoHwDecoder * decoder)
void VideoDrawRenderState(VideoHwDecoder * decoder,
struct vdpau_render_state *vrs)
{
#ifdef USE_VDPAU
if (VideoVdpauEnabled) {
VdpStatus status;
uint32_t start;
@ -5973,12 +5973,12 @@ void VideoDrawRenderState(VideoHwDecoder * decoder,
}
return;
}
#endif
(void)decoder;
(void)vrs;
Error(_("video/vdpau: draw render state, without vdpau enabled\n"));
return;
}
#endif
#ifndef USE_VIDEO_THREAD