mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-27 06:20:05 +00:00
Display a friendly error when trying to stream over 4K with H.264
This commit is contained in:
1 parent
d36d5936da
commit
c98ef6e8a9
2 files changed
+13
-1
No files matched your search
@@ -628,6 +628,18 @@ bool Session::validateLaunch(SDL_Window* testWindow)
|
|||||||
emitLaunchWarning("An attached gamepad has no mapping and won't be usable. Visit the Moonlight help to resolve this.");
|
emitLaunchWarning("An attached gamepad has no mapping and won't be usable. Visit the Moonlight help to resolve this.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NVENC will fail to initialize when using dimensions over 4096 and H.264.
|
||||||
|
if (m_StreamConfig.width > 4096 || m_StreamConfig.height > 4096) {
|
||||||
|
if (m_Computer->maxLumaPixelsHEVC == 0) {
|
||||||
|
emit displayLaunchError("Your host PC's GPU doesn't support streaming video resolutions over 4K.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (!m_StreamConfig.supportsHevc) {
|
||||||
|
emit displayLaunchError("Video resolutions over 4K are only supported by the HEVC codec.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (m_Preferences->videoDecoderSelection == StreamingPreferences::VDS_FORCE_HARDWARE &&
|
if (m_Preferences->videoDecoderSelection == StreamingPreferences::VDS_FORCE_HARDWARE &&
|
||||||
!m_StreamConfig.enableHdr && // HEVC Main10 was already checked for hardware decode support above
|
!m_StreamConfig.enableHdr && // HEVC Main10 was already checked for hardware decode support above
|
||||||
!isHardwareDecodeAvailable(testWindow,
|
!isHardwareDecodeAvailable(testWindow,
|
||||||
|
|||||||
Submodule moonlight-common-c/moonlight-common-c updated: c2471157c0...0cda408d3c.
Reference in new issue
Block a user