mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-01 23:35:47 +00:00
added missing #ifdefs for HAVE_VAAPI & HAVE_VDPAU
This commit is contained in:
parent
76cf6f6339
commit
eb2bdad535
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user