From eb2bdad5358dae91c83924e7c56318dac5b13dad Mon Sep 17 00:00:00 2001 From: Adrian Cuzman Date: Tue, 25 Jul 2017 18:01:08 +0000 Subject: [PATCH] added missing #ifdefs for HAVE_VAAPI & HAVE_VDPAU --- src/video/x11.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/x11.c b/src/video/x11.c index 552e42c..5309b3d 100644 --- a/src/video/x11.c +++ b/src/video/x11.c @@ -58,10 +58,14 @@ static int frame_handle(int pipefd) { if (frame) { if (ffmpeg_decoder == SOFTWARE) egl_draw(frame->data); + #ifdef HAVE_VAAPI else if (ffmpeg_decoder == VAAPI) vaapi_queue(frame, window, display_width, display_height); + #endif + #ifdef HAVE_VDPAU else if (ffmpeg_decoder == VDPAU) vdpau_queue(frame); + #endif } return LOOP_OK;