Commit Graph
100 Commits
Author SHA1 Message Date
Cameron Gutman 7ab48fb6d4 Use RFI for HEVC only
It is unstable on H.264 streams
2022-10-05 04:54:54 +00:00
Cameron Gutman 254f41686b Update moonlight-common-c with GFE 3.26 and HEVC RFI fixes 2022-10-05 04:53:01 +00:00
Cameron Gutman 758dc68958 Version 2.5.3 2022-09-23 22:59:19 -05:00
Cameron Gutman 0a9cadb729 Remove unused variable 2022-09-23 22:52:53 -05:00
Cameron Gutman 0325a3b88c Add support for custom ports with Sunshine 2022-09-23 22:48:43 -05:00
Cameron Gutman 3f00f25a39 Store port information in SERVER_DATA 2022-09-23 22:12:03 -05:00
Cameron Gutman 3859949b0f Fix amcodec detection on OSMC 2022-09-23 21:44:22 -05:00
Cameron Gutman 42980d09ee Remove semicolon from MIN_FRAME_BUFFER_COUNT definition 2022-09-23 21:31:52 -05:00
Cameron Gutman 60c4b514af Fix some grammatical errors 2022-09-23 21:30:44 -05:00
Cameron Gutman 9de64d25b9 Update SDL_GameControllerDB 2022-09-23 21:06:48 -05:00
Cameron Gutman 20a02acb07 Fix decoding errors on some devices when streaming from GFE 3.26 2022-09-22 23:30:21 -05:00
Cameron Gutman b7cf7a130b Fix mishandling of IDR frames with a SEI or AUD NAL 2022-09-12 00:02:50 -05:00
Cameron Gutman 1b95f027a2 Fix handling of 3 byte Annex B start sequences 2022-09-05 22:53:25 +00:00
Cameron Gutman 4ebd3fb8ba Update SDL_GameControllerDB 2022-08-10 19:33:36 -05:00
Cameron Gutman 543dc087fc Increase decode buffer size to match Pi/MMAL decoders 2022-06-26 14:22:54 -05:00
Cameron Gutman 5fe7b36b40 Reduce use of magic numbers 2022-04-21 23:31:04 -05:00
Cameron Gutman d74cc63038 Fix stack buffer overflow in pairing process 2022-04-21 23:06:31 -05:00
Cameron Gutman 039040e247 Replace usage of functions deprecated in OpenSSL 3.0 2022-04-21 23:04:23 -05:00
Cameron Gutman 22f75b74f9 Fix const warnings with FFmpeg 5.0 2022-04-21 22:13:21 -05:00
Cameron Gutman 6c215e47bf Update SDL_GameControllerDB 2022-03-15 23:19:54 -05:00
Cameron Gutman 44623c4a5e Update moonlight-common-c 2022-03-15 23:19:16 -05:00
Cameron Gutman f871b663b1 Add absolute mouse mode support when ungrabbed 2022-01-09 21:09:48 -06:00
Cameron Gutman 23e6854a84 Switch ungrab key combo to Ctrl+Alt+Shift+Z like Moonlight Qt 2022-01-09 19:57:52 -06:00
Cameron Gutman fe5dd11893 Add high resolution scrolling with SDL 2.0.18+ 2022-01-09 19:54:25 -06:00
Cameron Gutman fbf6a2e2f7 Use new rumble API on SDL 2.0.9+ 2022-01-09 19:50:48 -06:00
Cameron Gutman 5761f533ab Grab mouse only once streaming has started 2022-01-09 19:41:56 -06:00
Cameron Gutman bbdd7e5b24 Implement controller hotplugging for SDL 2022-01-09 19:41:35 -06:00
Cameron Gutman 634a0eee15 Fix finding libraries via pkg-config on Buster 2021-12-28 18:50:41 -06:00
Cameron Gutman 18fd1637a6 Prefer pkg-config for finding MMAL libraries 2021-12-28 18:07:16 -06:00
Cameron Gutman 807565de8b Version 2.5.2 2021-12-20 00:24:48 +00:00
Cameron Gutman 1d32f894f7 Update SDL_GameControllerDB 2021-12-19 16:24:01 -06:00
Cameron Gutman 89030f0701 Fix Raspbian CI build 2021-12-19 16:21:58 -06:00
Cameron Gutman ba8a23725d Fix build on Bullseye 2021-12-19 16:11:00 -06:00
Cameron Gutman 81322a2b91 Remove redundant match expression 2021-09-18 09:25:56 -05:00
Cameron Gutman 76b0de3566 Triggers should be unsigned types 2021-09-16 01:28:09 -05:00
Cameron Gutman bf7149e75d Fix type of halfaxis mapping values 2021-09-16 01:19:08 -05:00
Cameron Gutman 4164dc512f Version 2.5.1 2021-08-08 12:08:08 -05:00
Cameron Gutman 81a49e4564 Add parameter to disable gamepad mouse emulation 2021-08-08 12:03:56 -05:00
Cameron Gutman 3611f1dd89 Fix null termination issue if /proc/cpuinfo was over 4KB 2021-08-08 11:47:03 -05:00
Cameron Gutman 4b41692fd8 Fix handling of buttons outside the normal joystick range
See https://github.com/libsdl-org/SDL/commit/aa03b9d7afedefddda4e7f1575d87865ee5f3d93

Fixes #788
Fixes #696
Fixes #675
Fixes #693
Fixes #642
2021-08-08 11:26:07 -05:00
Cameron Gutman d45567b5ee Revert "Fix pressing unmapped buttons causing unexpected inputs"
Instead, we should not exclude certain buttons from mappings.

This reverts commit 21b6af3493.
2021-08-08 11:16:57 -05:00
Cameron Gutman 21b6af3493 Fix pressing unmapped buttons causing unexpected inputs 2021-08-08 11:07:13 -05:00
Cameron Gutman 6f15b257d7 Add DRM_FORMAT_NV12_10 definition for RK backend
Fixes #742
2021-08-08 10:05:43 -05:00
Cameron Gutman 3b51b40178 Update SDL_GameControllerDB 2021-08-08 09:34:56 -05:00
Cameron Gutman 7ff0bcd8fd Fix initialization of mapping structs 2021-08-07 18:08:55 -05:00
Cameron Gutman 3a63466fe2 Version 2.5.0 2021-07-25 19:15:53 -05:00
Cameron Gutman cd2f1bb012 Add a verbose print when a device is ignored as an accelerometer 2021-07-25 19:13:40 -05:00
Cameron Gutman 663e4b4b7a Avoid mapping PS4 trackpad as a gamepad 2021-07-25 19:10:01 -05:00
Cameron Gutman 836e61b7c3 Remove gamepad from host when removed from client 2021-07-25 18:54:39 -05:00
Cameron Gutman 12efeda8e1 Ignore accelerometers and improve debugging of player numbers 2021-07-25 18:49:11 -05:00
Cameron Gutman 4dd6ab97df Fix over-counting of evdev gamepads on stream start 2021-07-25 18:33:52 -05:00
Cameron Gutman 45c1a504e9 Avoid stuck keys on disconnect and remove useless sleep 2021-07-25 18:03:07 -05:00
Cameron Gutman 781afc7c66 Fix surround channel mappings on PulseAudio 2021-07-25 17:51:22 -05:00
Cameron Gutman 0698e8b43f Fix PulseAudio when manually specifying the audio device 2021-07-25 17:30:46 -05:00
Cameron Gutman 86140eb192 Fix Pi fallback to ALSA/PA after 7109301a 2021-07-25 17:15:04 -05:00
Cameron Gutman e8fbb2ec9c Add half-axis support for dpad 2021-07-25 17:04:43 -05:00
Cameron Gutman 35af4c4ede Add half-axis support for triggers 2021-07-25 16:47:06 -05:00
Cameron Gutman e2c2575efb Add friendly messages for certain error cases 2021-07-25 15:25:13 -05:00
Cameron Gutman 5215271b60 Add meta modifiers 2021-07-25 15:15:14 -05:00
Cameron Gutman b71862d622 Fix left vs right modifiers, insert key, and super keys 2021-07-25 15:03:26 -05:00
Cameron Gutman 30da7e2bc2 Don't prefix GPU type with 'NVIDIA' 2021-07-25 15:02:30 -05:00
Cameron Gutman 0cfc557c9c Don't fail if SOPS isn't supported at the current resolution 2021-07-25 15:01:46 -05:00
Cameron Gutman 1478d69123 Pass RTSP session URL to moonlight-common-c 2021-07-25 14:22:39 -05:00
Cameron Gutman fb57f3cb4d Add arbitrary audio duration support to all audio backends 2021-07-25 14:01:19 -05:00
Cameron Gutman 4e09dccfc0 Use moonlight-common-c definition for max channel count 2021-07-25 13:33:35 -05:00
Cameron Gutman d1937cb8e6 Fix usage help after remote and FPS default changes 2021-07-25 13:28:58 -05:00
Cameron Gutman ef719dc938 Cleanup and optimize FFmpeg code 2021-07-25 13:26:45 -05:00
Cameron Gutman 66ec344a31 Remove old reference to ENET_LIBRARIES 2021-07-25 13:25:27 -05:00
Cameron Gutman 8602c85714 Avoid deprecated av_init_packet() function 2021-07-25 13:17:21 -05:00
Cameron Gutman 48de7760dc Add Raspbian package build to CI 2021-07-24 18:38:34 -05:00
Cameron Gutman 572644800d Add AppVeyor CI 2021-07-24 17:48:40 -05:00
Cameron Gutman 30464979dc Enable audio encryption unless on a slow CPU 2021-07-24 16:25:03 -05:00
Cameron Gutman b907c4b608 Use the same remote streaming and packet size defaults as other clients 2021-07-24 15:57:55 -05:00
Cameron Gutman 56d1fee17b Default to 60 FPS at all resolutions
The time of most hardware maxing at 1080p30 has long since passed.
2021-07-24 15:40:59 -05:00
Cameron Gutman 2fa276182f Fix ALSA and PA mappings for 7.1 surround sound 2021-07-24 15:35:27 -05:00
Cameron Gutman 0ebd86184b Update SDL_GameControllerDB and convert it to a submodule 2021-07-24 15:17:51 -05:00
Cameron Gutman 1cb4699057 Start plumbing 7.1 surround sound support 2021-07-24 08:14:03 -05:00
Cameron Gutman 01d43ff596 FFmpeg VAAPI doesn't need slices and is incompatible with RFI 2021-07-24 07:56:41 -05:00
Cameron Gutman 98092f8baf FFmpeg software decoding doesn't support RFI for HEVC 2021-07-24 07:55:52 -05:00
Cameron Gutman 83982d3981 Change default value of 'unsupported' to true to match other clients 2021-07-24 07:50:55 -05:00
Cameron Gutman fc44f010f8 Update SPS fixup code to match current Qt/Android version 2021-07-24 07:39:03 -05:00
Cameron Gutman 615ed824ac Use 48KHz sample rate for PA test to match the actual stream 2021-07-24 07:33:07 -05:00
Cameron Gutman 7109301a46 Never use audio callbacks for fake platform 2021-07-24 07:31:01 -05:00
Cameron Gutman e84ae26ccc Avoid needless EVP_get_digestbyname() and EVP_DigestInit_ex() calls 2021-07-24 07:27:03 -05:00
Cameron Gutman faa7eef9a4 Don't add X509v3 extensions
There is something wrong with the combination of extension we add
that causes OpenSSL to believe these certificates were issued by
a CA and fail to validate them because it can't find the issuing
CA cert.

The certificates work fine without the extensions, so just don't
add them (which is what other Moonlight clients do).
2021-07-24 07:21:52 -05:00
Cameron Gutman 296c8de759 Fix copying rikeyid value 2021-07-24 07:13:55 -05:00
Cameron Gutman 957bc49da9 Fix frame rate locked to 60 FPS with GFE 3.20.3 2020-05-25 21:38:14 -07:00
Cameron Gutman 0c6f98e544 Fix surround sound on a resumed session 2020-04-23 19:29:07 -07:00
Cameron Gutman 519a14a427 Use a SHA256 signature for the client certificate 2019-07-05 13:36:49 -07:00
Cameron Gutman 5f167ce109 Fix SPS length being 4 bytes short 2019-05-01 19:21:05 -07:00
Cameron Gutman f305e235f9 Fix bugs found by compiler warnings 2019-04-30 19:50:22 -07:00
Cameron Gutman 7f4f1cb91e Fix unintended assignment 2019-04-30 19:47:40 -07:00
Cameron Gutman 2f687cc58a Don't modify the decode unit in place 2019-04-30 18:55:18 -07:00
Cameron Gutman e21e2074e3 Add support for X1 and X2 mouse buttons 2018-10-09 19:39:25 +02:00
Cameron Gutman 0810794220 Ignore mDNS responses over IPv6 since this client doesn't support IPv6. Fixes #629 2018-02-27 22:02:03 -08:00
Cameron Gutman 5cb4a8cc42 Lower required OpenSSL version to 1.0.2 2017-06-01 10:29:43 -07:00
Cameron Gutman 0f5b50dfa7 Fix integer overflow in deadzone calculation 2016-04-03 02:14:53 -04:00
Cameron Gutman 86532497ef Fix pairing and streaming from Gen 7 servers 2016-04-01 01:30:37 -04:00
Cameron Gutman c6c4e5102c Fix build with new moonlight-common-c source layout 2016-04-01 00:31:32 -04:00
Cameron Gutman 895054aa69 Update common to disable dynamic resolution switching 2016-02-28 20:39:11 +01:00