mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-13 03:16:12 +00:00
SDL in single thread
This commit is contained in:
@@ -85,18 +85,12 @@ static void stream(PSERVER_DATA server, PCONFIGURATION config, enum platform sys
|
||||
|
||||
gs_start_app(server, &config->stream, appId, config->sops, config->localaudio);
|
||||
|
||||
void *context = NULL;
|
||||
#ifdef HAVE_SDL
|
||||
if (system == SDL)
|
||||
context = sdl_window;
|
||||
#endif
|
||||
|
||||
int drFlags = 0;
|
||||
if (config->fullscreen)
|
||||
drFlags |= DISPLAY_FULLSCREEN;
|
||||
|
||||
printf("Stream %d x %d, %d fps, %d kbps\n", config->stream.width, config->stream.height, config->stream.fps, config->stream.bitrate);
|
||||
LiStartConnection(server->address, &config->stream, &connection_callbacks, platform_get_video(system), platform_get_audio(system), context, drFlags, server->serverMajorVersion);
|
||||
LiStartConnection(server->address, &config->stream, &connection_callbacks, platform_get_video(system), platform_get_audio(system), NULL, drFlags, server->serverMajorVersion);
|
||||
|
||||
if (IS_EMBEDDED(system)) {
|
||||
evdev_start();
|
||||
|
||||
Reference in New Issue
Block a user