Use automatic remote streaming detection

This commit is contained in:
Cameron Gutman 2018-11-21 20:55:25 -08:00
parent 9c7df02941
commit 065a6caee5
2 changed files with 3 additions and 15 deletions

View File

@ -315,6 +315,8 @@ void Session::initialize()
m_StreamConfig.fps = m_Preferences->fps;
m_StreamConfig.bitrate = m_Preferences->bitrateKbps;
m_StreamConfig.hevcBitratePercentageMultiplier = 75;
m_StreamConfig.streamingRemotely = STREAM_CFG_AUTO;
m_StreamConfig.packetSize = 1392;
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Video bitrate: %d kbps",
@ -382,20 +384,6 @@ void Session::initialize()
break;
}
if (m_Computer->activeAddress == m_Computer->remoteAddress) {
m_StreamConfig.streamingRemotely = 1;
}
else {
m_StreamConfig.streamingRemotely = 0;
}
if (m_Computer->activeAddress == m_Computer->localAddress) {
m_StreamConfig.packetSize = 1392;
}
else {
m_StreamConfig.packetSize = 1024;
}
switch (m_Preferences->windowMode)
{
case StreamingPreferences::WM_FULLSCREEN_DESKTOP:

@ -1 +1 @@
Subproject commit 396b02a94db4db291524a867106464357db1fdac
Subproject commit 639ff18dbbcde35ca918c2e898e20bd2a624fdc5