SDL uses software decoding so it should only be considered when no hardware accelerated options are available

This commit is contained in:
Cameron Gutman
2015-11-22 15:23:36 -08:00
parent e215252dc8
commit 07657529a9

View File

@@ -31,10 +31,6 @@ typedef bool(*ImxInit)();
enum platform platform_check(char* name) {
bool std = strcmp(name, "default") == 0;
#ifdef HAVE_SDL
if (std || strcmp(name, "sdl") == 0)
return SDL;
#endif
#ifdef HAVE_IMX
if (std || strcmp(name, "imx") == 0) {
void *handle = dlopen("libmoonlight-imx.so", RTLD_NOW | RTLD_GLOBAL);
@@ -52,6 +48,10 @@ enum platform platform_check(char* name) {
return PI;
}
#endif
#ifdef HAVE_SDL
if (std || strcmp(name, "sdl") == 0)
return SDL;
#endif
#ifdef HAVE_FAKE
if (std || strcmp(name, "fake") == 0)
return FAKE;