mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-04 00:36:01 +00:00
Fix unasked usage of VDPAU in SDL
This commit is contained in:
parent
2d278b9370
commit
d44f06961f
@ -34,7 +34,7 @@ static char* ffmpeg_buffer;
|
|||||||
|
|
||||||
static void sdl_setup(int videoFormat, int width, int height, int redrawRate, void* context, int drFlags) {
|
static void sdl_setup(int videoFormat, int width, int height, int redrawRate, void* context, int drFlags) {
|
||||||
int avc_flags = SLICE_THREADING;
|
int avc_flags = SLICE_THREADING;
|
||||||
if (drFlags && FORCE_HARDWARE_ACCELERATION)
|
if (drFlags & FORCE_HARDWARE_ACCELERATION)
|
||||||
avc_flags |= HARDWARE_ACCELERATION;
|
avc_flags |= HARDWARE_ACCELERATION;
|
||||||
|
|
||||||
if (ffmpeg_init(videoFormat, width, height, avc_flags, 2) < 0) {
|
if (ffmpeg_init(videoFormat, width, height, avc_flags, 2) < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user