Cameron Gutman
5a4fd95765
Rewrite UPnP support
...
- Fixes port mappings expiring after a day
- Fixes support for IGDv1 gateways
- Fixes handling of gateway reboots/resets
2023-05-22 22:53:36 -05:00
Cameron Gutman
25e0244705
Stop reporting ExternalIP field to clients
...
At best, it doesn't help compared to Moonlight's STUN logic.
At worst, it makes things worse by providing an incorrect WAN address that overrides STUN.
2023-05-22 22:53:36 -05:00
Cameron Gutman
85af19150c
Fix leak of AVPackets
2023-05-22 19:44:04 -05:00
Cameron Gutman
5b24148cfa
Fix leak of VA driver resources on each encoder init
2023-05-22 19:44:04 -05:00
Cameron Gutman
8a9eed2f6f
Fix leak of X509 on each HTTPS request
2023-05-22 19:44:04 -05:00
Cameron Gutman
32ca9d41de
Fix crash on exit if a process is currently running
2023-05-15 19:11:51 -06:00
Cameron Gutman
33dafbc801
Add warning when Desktop Duplication API masks protected content from capture
2023-05-14 14:28:03 -05:00
Cameron Gutman
17124deb22
Fix const-correctness bugs in round_robin.h
2023-05-11 20:52:44 -05:00
Cameron Gutman
fabadaad2a
Fix const-correctness bugs in uniq_ptr and code that uses it
2023-05-11 20:52:44 -05:00
Cameron Gutman
0fa406dbb7
Remove unnecessary moves in return statements
2023-05-11 20:52:44 -05:00
Cameron Gutman
ff046bb707
Fix and enable -Wmissing-braces
2023-05-11 20:52:44 -05:00
Cameron Gutman
390dc1c245
Fix unused-but-set-variable warnings on Mac and Linux
2023-05-11 20:52:44 -05:00
Cameron Gutman
2571682886
Fix pessimizing move warnings on Clang
2023-05-11 20:52:44 -05:00
Cameron Gutman
8db0ad0cc6
Fix and enable -Wmaybe-uninitialized
2023-05-11 20:52:44 -05:00
Cameron Gutman
f08ba0fd7c
Fix missing override specifier on set_frame()
2023-05-11 20:52:44 -05:00
Cameron Gutman
a4f788f853
Replace Win32 UTF-16 conversion with std::wstring_convert
...
Removes VLA that upsets Clang and MSVC
2023-05-11 20:52:44 -05:00
Cameron Gutman
1c83a44222
Fix const reference and const pointer types in wrap_ptr
...
They were const refs to a T rather than a ref to a const T.
2023-05-11 20:52:44 -05:00
istori1
9e23b39634
Add NO_RC_BUF_LIMIT vaapi
2023-05-11 18:59:13 -05:00
Cameron Gutman
71dcef8259
Fix systray icon sometimes not appearing after login
2023-05-11 18:32:33 -05:00
Cameron Gutman
53125ffeca
Add support for installing the Steam Streaming Speakers driver ( #1262 )
...
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com >
2023-05-09 20:02:28 -05:00
Cameron Gutman
4ae412b219
Allow localAudioPlayMode to change on /resume
...
Newer clients send all /launch parameters to /resume too
2023-05-08 18:57:55 -05:00
Cameron Gutman
66989a4690
Set the default back to the virtual sink if it's changed
...
Fixes #976
2023-05-08 18:57:55 -05:00
Cameron Gutman
bc392093a3
Reinitialize capture if the default audio device changes
...
We already reinitialized if the default device was removed, but we didn't in the case a new default device was set without removing the old one.
2023-05-08 18:57:55 -05:00
Cameron Gutman
ccdc882c13
Fix pessimising move warning with GCC 13.1
2023-05-08 18:57:55 -05:00
ReenigneArcher
4ca6dc6c8e
docs: update file level doxygen blocks ( #1258 )
2023-05-07 18:12:39 -04:00
ReenigneArcher
979f7f4e60
docs: improvements to source code documentation ( #1236 )
2023-05-07 15:01:44 -04:00
Cameron Gutman
97f18d6353
Fix audio capture reinitialization
...
We returned instead of continuing, so audio never worked after reinit.
We also had no retry logic if no audio device was available.
2023-05-07 11:52:57 -05:00
Cameron Gutman
86c854ce97
Allow streaming even if no audio sink is available
2023-05-07 11:52:57 -05:00
Cameron Gutman
1d6ea8c759
Allow audio sinks to match on device names
...
Names are more stable than IDs on Windows
2023-05-07 11:52:57 -05:00
ReenigneArcher
91460f3c72
fix(ui): allow case-insensitive username ( #1249 )
2023-05-06 08:45:35 -04:00
Cameron Gutman
020d5cd8c3
Add status messages for client errors
2023-05-05 23:14:04 -05:00
Cameron Gutman
6a3b7708bb
Remove unnecessary uniqueid check for /applist
...
We already perform access control via client certificates
2023-05-05 23:14:04 -05:00
Cameron Gutman
b59b885dbd
Fix pairing error handling when the hash doesn't match
...
We shouldn't proceed to signature verification if we already failed hash verification
2023-05-05 23:14:04 -05:00
Cameron Gutman
663bf750d9
Add missing cstdint include
2023-05-05 22:49:39 -05:00
Cameron Gutman
a7c1252fd9
Fix accidental concatenation of resolution strings
...
Spotted by @ns6089
2023-05-05 17:42:59 -05:00
Cameron Gutman
2fca9cd0da
Fix launching apps with a log file specified
2023-05-05 17:42:59 -05:00
Cameron Gutman
a6d295b273
Wait for pending sessions to connect before breaking on app termination
...
If we don't wait, clients may fail control stream establishment if the app terminates early.
2023-05-05 17:42:59 -05:00
Cameron Gutman
eb8aaf0093
Fix graceful termination messages being discarded by Moonlight
2023-05-05 17:42:59 -05:00
Cameron Gutman
10ea67719e
Fix crash if capture is stopped before completing startup
2023-05-05 17:42:59 -05:00
Cameron Gutman
df1286ac88
Fix crash if the app terminates before the control stream is connected
2023-05-05 17:42:59 -05:00
Cameron Gutman
c706ba4ca2
Add Windows-specific warnings if Sunshine is unable to access config or credentials
...
http::init() failure must be fatal because attempting to start the web servers will crash due to null creds.
2023-05-03 00:33:06 -05:00
Cameron Gutman
65b7f2373c
Fix merging user environment variables during process launch
2023-05-03 00:33:06 -05:00
Cameron Gutman
292ef7eca3
Don't show a console window when opening a URL
2023-05-03 00:33:06 -05:00
Cameron Gutman
c4c04694ac
Restore the start menu shortcut as a proper launcher for the UI and service
2023-05-03 00:33:06 -05:00
Cameron Gutman
c8d4fd9f69
Keep/turn the display on during streaming
...
IDXGIDuplication::DuplicateOutput() may fail with 0x80070005 if the display is off and cause streaming to fail
2023-05-03 00:07:01 -05:00
ns6089
8347824eee
Print frame processing latency to debug log
2023-05-02 23:41:13 -05:00
ns6089
bd533dc31b
Extend packet header with frame processing latency
2023-05-02 23:41:13 -05:00
ReenigneArcher
3cfb520217
fix(audio)!: remove policy config for Windows Vista ( #1235 )
2023-04-30 20:41:45 -04:00
Cameron Gutman
50f689ff80
Implement restart support for all platforms
2023-04-29 21:22:18 -05:00
Cameron Gutman
4668ff59e5
Fix ringing with non-truthy values in alarm_t
...
The Windows mDNS registration code does this in the failure path and ends up deadlocking.
2023-04-29 20:43:16 -05:00