Skip to content

Commit b99c5e3

Browse files
committed
moonlight-common-c updated
1 parent 4c3c810 commit b99c5e3

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${EXTERN_PATH}/cmake")
4141
project(Moonlight)
4242
set(VERSION_MAJOR "1")
4343
set(VERSION_MINOR "3")
44-
set(VERSION_ALTER "3")
44+
set(VERSION_ALTER "4")
4545
set(VERSION_BUILD "1")
4646
set(PACKAGE_NAME "ru.xitrix.Moonlight")
4747
set(PSN_TITLE_ID "MNTL00000")
@@ -240,6 +240,7 @@ elseif (PLATFORM_IOS)
240240
XCODE_ATTRIBUTE_INFOPLIST_KEY_GCSupportsGameMode YES
241241
XCODE_ATTRIBUTE_INFOPLIST_KEY_GCSupportsControllerUserInteraction YES
242242
XCODE_ATTRIBUTE_INFOPLIST_KEY_GCRequiresControllerUserInteraction YES
243+
XCODE_ATTRIBUTE_INFOPLIST_KEY_LSSupportsGameMode YES
243244
XCODE_ATTRIBUTE_INFOPLIST_KEY_LSApplicationCategoryType "public.app-category.games"
244245
XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS "@executable_path/Frameworks"
245246
XCODE_ATTRIBUTE_FRAMEWORK_SEARCH_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/extern/borealis/library/lib/extern/angle/ios/"

app/platforms/ios/iOSBundleInfo.plist.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,7 @@
8383
<string>Network usage is required to find hosts in your local network</string>
8484
<key>ITSAppUsesNonExemptEncryption</key>
8585
<false/>
86+
<key>LSSupportsGameMode</key>
87+
<true/>
8688
</dict>
8789
</plist>

app/src/streaming/ffmpeg/FFmpegVideoDecoder.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,14 @@ int FFmpegVideoDecoder::decode(char* indata, int inlen) {
383383
m_packet->data = (uint8_t*)indata;
384384
m_packet->size = inlen;
385385

386+
#if !defined(PLATFORM_SWITCH)
387+
int policy;
388+
sched_param params{};
389+
pthread_getschedparam(pthread_self(), &policy, &params);
390+
params.sched_priority = sched_get_priority_max(policy);
391+
pthread_setschedparam(pthread_self(), policy, &params);
392+
#endif
393+
386394
// m_decoder_context->skip_frame = AVDISCARD_ALL;
387395

388396
int err = avcodec_send_packet(m_decoder_context, m_packet);

0 commit comments

Comments
 (0)