added missing #ifdefs for HAVE_VAAPI & HAVE_VDPAU

This commit is contained in:
Adrian Cuzman 2017-07-25 18:01:08 +00:00
parent 76cf6f6339
commit eb2bdad535

View File

@ -58,10 +58,14 @@ static int frame_handle(int pipefd) {
if (frame) { if (frame) {
if (ffmpeg_decoder == SOFTWARE) if (ffmpeg_decoder == SOFTWARE)
egl_draw(frame->data); egl_draw(frame->data);
#ifdef HAVE_VAAPI
else if (ffmpeg_decoder == VAAPI) else if (ffmpeg_decoder == VAAPI)
vaapi_queue(frame, window, display_width, display_height); vaapi_queue(frame, window, display_width, display_height);
#endif
#ifdef HAVE_VDPAU
else if (ffmpeg_decoder == VDPAU) else if (ffmpeg_decoder == VDPAU)
vdpau_queue(frame); vdpau_queue(frame);
#endif
} }
return LOOP_OK; return LOOP_OK;