Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pairing issue #231

Closed
wants to merge 405 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
405 commits
Select commit Hold shift + click to select a range
0125a49
evdev: limit unnecessary polls
darsto Dec 3, 2017
a4b6de1
Use PATH_MAX and memory safe string operations in libgamestream
irtimmer Dec 19, 2017
df0114e
Update moonlight-common-c for GFE 3.12
irtimmer Jan 11, 2018
5d708b9
Update version number
irtimmer Jan 13, 2018
6411150
Fix for video corruption
irtimmer Jan 14, 2018
e64ad96
Update version number
irtimmer Jan 14, 2018
f7fadbd
FindAmlogic: don't depend on amadec and amavutils
kszaq Feb 4, 2018
0810794
Ignore mDNS responses over IPv6 since this client doesn't support IPv…
cgutman Feb 28, 2018
808bc36
Update moonlight-common-c
irtimmer Feb 28, 2018
d452411
Import updated gamecontrollerdb.txt from gabomdq's SDL_GameControllerDB
irtimmer Feb 28, 2018
dcda1a5
Correct controller GUID when product or vendor id is undefined
irtimmer Mar 20, 2018
f31a98d
edit Contributing.md
DerekRoy Apr 4, 2018
c8195f7
Provide gamepad mask at startup
irtimmer Apr 8, 2018
8dfab9b
Do not complain about incorrect mapping when some abs are not used
irtimmer Apr 8, 2018
1d63640
Merge remote-tracking branch 'DerekRoy/patch-1'
irtimmer Apr 8, 2018
c030ee6
Update FFMpeg code and remove VDPAU support as it needs to be rewritten
irtimmer May 26, 2018
c0cc207
Add: initial ODROID-N1 Rockchip hardware decoder support
AreaScout Mar 5, 2018
d8d7f75
Merge remote-tracking branch 'areascout/rockchip'
irtimmer Jun 15, 2018
9b0b2d4
Add: hide cursor in left lower corner instead of delete it -> easier …
AreaScout Jun 18, 2018
a9f85e9
Revert "FindAmlogic: don't depend on amadec and amavutils"
irtimmer Aug 4, 2018
53d2e7c
Small buffer size fix
irtimmer Aug 11, 2018
d0bce38
Update moonlight-common-c
irtimmer Aug 11, 2018
304b54f
Update gamecontrollerdb
irtimmer Aug 11, 2018
d54d348
Update version number
irtimmer Aug 11, 2018
7a2f713
x11: Handle Mouse scroll wheel events
Aug 13, 2018
5ce1e12
Update readme
irtimmer Aug 13, 2018
7c21672
replace malloc/strcpy pair with strdup to allocate correct size
sauyon Sep 18, 2018
c52ba9c
Add link to Discord in README.md
irtimmer Sep 28, 2018
e21e207
Add support for X1 and X2 mouse buttons
cgutman Oct 9, 2018
9ab10f0
Update moonlight-common-c
irtimmer Nov 23, 2018
aee5d99
Add: register all for FFmpeg
AreaScout Nov 25, 2018
9a1db09
Rename QUIT_MODIFIERS and MODIFIERS constants to ACTION_MODIFIERS
hhromic Dec 1, 2018
f703995
x11: use QUIT_KEY constant instead of direct code
hhromic Dec 1, 2018
b640cf3
Remove executable bit from CMake file
irtimmer Dec 2, 2018
bfade06
Correct linking to libdrm on Rockchip
irtimmer Dec 2, 2018
a5ea38c
Update gamecontrollerdb
irtimmer Dec 2, 2018
b50f8d8
Merge remote-tracking branch 'sauyon/master'
irtimmer Jan 18, 2019
4446c4f
Merge remote-tracking branch 'AreaScout/ffmpeg'
irtimmer Jan 18, 2019
497cb87
Merge remote-tracking branch 'hhromic/code-cleanup'
irtimmer Jan 18, 2019
ee6a3b4
Update moonlight-common-c
irtimmer Jan 18, 2019
7a32234
Fixed permissions on source file
hhromic Jan 20, 2019
d0f5f90
Add option for sending quit app request after quitting streaming session
hhromic Jan 22, 2019
2adf943
Update moonlight-common-c
irtimmer Feb 16, 2019
0868f02
Port rumble support for SDL from moonlight-qt
irtimmer Feb 16, 2019
292a26d
Initial attempt to implement rumble for evdev
irtimmer Feb 16, 2019
d7ac865
Do signal masking before thread creation
irtimmer Feb 17, 2019
212eac6
Only grab input devices if they are keyboards
hhromic Feb 24, 2019
7b46b4b
Minor fixes to get rumble working in evdev devices
posti85 Apr 18, 2019
10881d4
Update moonlight-common-c
irtimmer Apr 22, 2019
817cd06
Update gamecontrollerdb.txt
irtimmer Apr 29, 2019
2cb7253
Add connection status update handler
irtimmer Apr 29, 2019
115966c
Update version number
irtimmer Apr 29, 2019
2f687cc
Don't modify the decode unit in place
cgutman May 1, 2019
7f4f1cb
Fix unintended assignment
cgutman May 1, 2019
f305e23
Fix bugs found by compiler warnings
cgutman May 1, 2019
0054070
Merge remote-tracking branch 'cgutman/fix-warnings'
irtimmer May 1, 2019
6a7ac5c
Update version number
irtimmer May 1, 2019
5f167ce
Fix SPS length being 4 bytes short
cgutman May 2, 2019
763bcb7
Correct gamecontrollerdb.txt update
irtimmer May 2, 2019
99340f1
Update moonlight-common-c
irtimmer May 27, 2019
919553f
Update gamecontrollerdb
irtimmer May 27, 2019
039eabc
Update version
irtimmer May 27, 2019
52efef7
video/rockchip: define READ_BUF_SIZE as a size of 0x00100000
SupervisedThinking Jul 3, 2019
519a14a
Use a SHA256 signature for the client certificate
cgutman Jul 5, 2019
eb94742
Merge remote-tracking branch 'cgutman/sha256_buster'
irtimmer Jul 6, 2019
243ef8a
Also grab mouse input devices (fixes #756)
hhromic Sep 12, 2019
c8e090a
Minor config codebase clean-ups for consistency
hhromic Sep 29, 2019
434dba3
General codebase clean-ups (no code changes)
hhromic Sep 29, 2019
6c8b3bb
Remove redundant config parsing conditionals
hhromic Sep 29, 2019
4ee5015
Clarify `-localaudio` option in help text
hhromic Oct 5, 2019
ecf09e8
Add option for disabling all input (view-only mode) in streaming session
hhromic Oct 5, 2019
fe1c203
when sending CTRL+ALT+SHIFT+Q key sequence for disconnecting from the…
aandaluz Dec 3, 2019
4528b78
Added git branch name and short hash to moonlight binary
aandaluz Oct 15, 2019
3a86fec
Add reference to source of gamecontrollerdb.txt
irtimmer Jan 5, 2020
8f9e270
Remove references to fora
irtimmer Mar 9, 2020
70e54ef
Update moonlight-common-c
irtimmer Mar 9, 2020
922cd29
Add MMAL video decoder
irtimmer Mar 17, 2020
a66d75b
Sent max FPS value of 60 when using SOPS
irtimmer Mar 17, 2020
7f856d3
Warn about unsupported resolutions in combination with SOPS
irtimmer Mar 17, 2020
a205edc
forced omx rotation to 90 degrees
tomblind Apr 13, 2020
c9a6245
initial touchscreen support (rotated 90 degrees for the moment)
tomblind Apr 13, 2020
4bfeee6
Added command line option to control omx rotation
tomblind Apr 17, 2020
ceacef6
Added display rotation support to mmal decoder
tomblind Apr 17, 2020
4cd2d4b
Included video.h in pi and mmal to give access to rotation flags
tomblind Apr 17, 2020
aae2455
Added transform flag to mmal display settings so rotation takes effect
tomblind Apr 17, 2020
b22b07e
Applied display rotation to mouse movement in evdev
tomblind Apr 17, 2020
6b8260c
refactored touchscreen code for clarity and safety, and removed hacke…
tomblind Apr 18, 2020
5beb32d
Emulating right click on touch screens with a long press
tomblind Apr 18, 2020
4711129
Merge remote-tracking branch 'tomblind/touchscreen'
irtimmer Apr 18, 2020
9510475
Fix missed merging conflicts
irtimmer Apr 19, 2020
14644f1
Update moonlight-common-c
irtimmer Apr 19, 2020
0c6f98e
Fix surround sound on a resumed session
cgutman Apr 24, 2020
957bc49
Fix frame rate locked to 60 FPS with GFE 3.20.3
cgutman May 26, 2020
5b6639c
Fix gcc-10 compilation (fno-common flag enabled by default)
rtissera Jul 11, 2020
f9a2034
moonlight-common-c: merge new upstream changes
irtimmer Apr 14, 2021
9cec420
Fixed trigger left/right range
mariotaku Apr 19, 2021
338063f
Changed random Client ID to the same as official Moonlight
KiralyCraft Oct 1, 2020
5baa2c9
Merge branch 'clientid'
irtimmer Apr 21, 2021
7c8795f
Merge pull request #814 from mariotaku/master
irtimmer Apr 21, 2021
a97b2cc
Randomized input IV
mariotaku Apr 28, 2021
660cc7d
Added missing import
mariotaku Apr 28, 2021
8f4d9aa
Merge pull request #816 from mariotaku/master
irtimmer Jul 20, 2021
d7f9bc0
Switch back to upstream moonlight-common-c
irtimmer Jul 22, 2021
b4ef1dd
Update urls in docs
irtimmer Jul 22, 2021
296c8de
Fix copying rikeyid value
cgutman Jul 24, 2021
faa7eef
Don't add X509v3 extensions
cgutman Jul 24, 2021
e84ae26
Avoid needless EVP_get_digestbyname() and EVP_DigestInit_ex() calls
cgutman Jul 24, 2021
7109301
Never use audio callbacks for fake platform
cgutman Jul 24, 2021
615ed82
Use 48KHz sample rate for PA test to match the actual stream
cgutman Jul 24, 2021
fc44f01
Update SPS fixup code to match current Qt/Android version
cgutman Jul 24, 2021
83982d3
Change default value of 'unsupported' to true to match other clients
cgutman Jul 24, 2021
98092f8
FFmpeg software decoding doesn't support RFI for HEVC
cgutman Jul 24, 2021
01d43ff
FFmpeg VAAPI doesn't need slices and is incompatible with RFI
cgutman Jul 24, 2021
1cb4699
Start plumbing 7.1 surround sound support
cgutman Jul 24, 2021
0ebd861
Update SDL_GameControllerDB and convert it to a submodule
cgutman Jul 24, 2021
2fa2761
Fix ALSA and PA mappings for 7.1 surround sound
cgutman Jul 24, 2021
56d1fee
Default to 60 FPS at all resolutions
cgutman Jul 24, 2021
b907c4b
Use the same remote streaming and packet size defaults as other clients
cgutman Jul 24, 2021
3046497
Enable audio encryption unless on a slow CPU
cgutman Jul 24, 2021
5726448
Add AppVeyor CI
cgutman Jul 24, 2021
48de776
Add Raspbian package build to CI
cgutman Jul 24, 2021
8602c85
Avoid deprecated av_init_packet() function
cgutman Jul 25, 2021
66ec344
Remove old reference to ENET_LIBRARIES
cgutman Jul 25, 2021
ef719dc
Cleanup and optimize FFmpeg code
cgutman Jul 25, 2021
d1937cb
Fix usage help after remote and FPS default changes
cgutman Jul 25, 2021
4e09dcc
Use moonlight-common-c definition for max channel count
cgutman Jul 25, 2021
fb57f3c
Add arbitrary audio duration support to all audio backends
cgutman Jul 25, 2021
1478d69
Pass RTSP session URL to moonlight-common-c
cgutman Jul 25, 2021
0cfc557
Don't fail if SOPS isn't supported at the current resolution
cgutman Jul 25, 2021
30da7e2
Don't prefix GPU type with 'NVIDIA'
cgutman Jul 25, 2021
b71862d
Fix left vs right modifiers, insert key, and super keys
cgutman Jul 25, 2021
5215271
Add meta modifiers
cgutman Jul 25, 2021
e2c2575
Add friendly messages for certain error cases
cgutman Jul 25, 2021
35af4c4
Add half-axis support for triggers
cgutman Jul 25, 2021
e8fbb2e
Add half-axis support for dpad
cgutman Jul 25, 2021
86140eb
Fix Pi fallback to ALSA/PA after 7109301a
cgutman Jul 25, 2021
0698e8b
Fix PulseAudio when manually specifying the audio device
cgutman Jul 25, 2021
781afc7
Fix surround channel mappings on PulseAudio
cgutman Jul 25, 2021
45c1a50
Avoid stuck keys on disconnect and remove useless sleep
cgutman Jul 25, 2021
4dd6ab9
Fix over-counting of evdev gamepads on stream start
cgutman Jul 25, 2021
12efeda
Ignore accelerometers and improve debugging of player numbers
cgutman Jul 25, 2021
836e61b
Remove gamepad from host when removed from client
cgutman Jul 25, 2021
663e4b4
Avoid mapping PS4 trackpad as a gamepad
cgutman Jul 26, 2021
cd2f1bb
Add a verbose print when a device is ignored as an accelerometer
cgutman Jul 26, 2021
3a63466
Version 2.5.0
cgutman Jul 26, 2021
469b2ed
Mouse emulation support for evdev
Aug 3, 2021
7ff0bcd
Fix initialization of mapping structs
cgutman Aug 7, 2021
3b51b40
Update SDL_GameControllerDB
cgutman Aug 8, 2021
6f15b25
Add DRM_FORMAT_NV12_10 definition for RK backend
cgutman Aug 8, 2021
21b6af3
Fix pressing unmapped buttons causing unexpected inputs
cgutman Aug 8, 2021
d45567b
Revert "Fix pressing unmapped buttons causing unexpected inputs"
cgutman Aug 8, 2021
4b41692
Fix handling of buttons outside the normal joystick range
cgutman Aug 8, 2021
3611f1d
Fix null termination issue if /proc/cpuinfo was over 4KB
cgutman Aug 8, 2021
81a49e4
Add parameter to disable gamepad mouse emulation
cgutman Aug 8, 2021
4164dc5
Version 2.5.1
cgutman Aug 8, 2021
87613b3
Flush pair code for external scripts
TheChoconut Aug 21, 2021
bf7149e
Fix type of halfaxis mapping values
cgutman Sep 16, 2021
76b0de3
Triggers should be unsigned types
cgutman Sep 16, 2021
d58d8f7
Added options for optional dependencies. (#829)
TheChoconut Sep 18, 2021
81322a2
Remove redundant match expression
cgutman Sep 18, 2021
ba8a237
Fix build on Bullseye
cgutman Dec 19, 2021
89030f0
Fix Raspbian CI build
cgutman Dec 19, 2021
1d32f89
Update SDL_GameControllerDB
cgutman Dec 19, 2021
807565d
Version 2.5.2
cgutman Dec 20, 2021
18fd163
Prefer pkg-config for finding MMAL libraries
cgutman Dec 29, 2021
634a0ee
Fix finding libraries via pkg-config on Buster
cgutman Dec 29, 2021
bbdd7e5
Implement controller hotplugging for SDL
cgutman Jan 10, 2022
5761f53
Grab mouse only once streaming has started
cgutman Jan 10, 2022
fbf6a2e
Use new rumble API on SDL 2.0.9+
cgutman Jan 10, 2022
fe5dd11
Add high resolution scrolling with SDL 2.0.18+
cgutman Jan 10, 2022
23e6854
Switch ungrab key combo to Ctrl+Alt+Shift+Z like Moonlight Qt
cgutman Jan 10, 2022
f871b66
Add absolute mouse mode support when ungrabbed
cgutman Jan 10, 2022
8323eeb
Bugfix : let the program terminate if connection is lost when using SDL
camalolo Jan 9, 2022
786d4a6
Add rotation in the sample configuration file
mjbogusz Jan 11, 2022
5449b52
Warn about invalid rotation values
mjbogusz Jan 11, 2022
44623c4
Update moonlight-common-c
cgutman Mar 16, 2022
6c215e4
Update SDL_GameControllerDB
cgutman Mar 16, 2022
22f75b7
Fix const warnings with FFmpeg 5.0
cgutman Apr 22, 2022
039040e
Replace usage of functions deprecated in OpenSSL 3.0
cgutman Apr 22, 2022
d74cc63
Fix stack buffer overflow in pairing process
cgutman Apr 22, 2022
5fe7b36
Reduce use of magic numbers
cgutman Apr 22, 2022
543dc08
Increase decode buffer size to match Pi/MMAL decoders
cgutman Jun 26, 2022
b9703e7
Add --pin argument for easier pairing using frontends (#853)
kkoshelev Jun 29, 2022
4ebd3fb
Update SDL_GameControllerDB
cgutman Aug 11, 2022
1b95f02
Fix handling of 3 byte Annex B start sequences
cgutman Sep 5, 2022
b7cf7a1
Fix mishandling of IDR frames with a SEI or AUD NAL
cgutman Sep 12, 2022
20a02ac
Fix decoding errors on some devices when streaming from GFE 3.26
cgutman Sep 23, 2022
9de64d2
Update SDL_GameControllerDB
cgutman Sep 24, 2022
60c4b51
Fix some grammatical errors
cgutman Sep 24, 2022
42980d0
Remove semicolon from MIN_FRAME_BUFFER_COUNT definition
cgutman Sep 24, 2022
3859949
Fix amcodec detection on OSMC
cgutman Sep 24, 2022
3f00f25
Store port information in SERVER_DATA
cgutman Sep 24, 2022
0325a3b
Add support for custom ports with Sunshine
cgutman Sep 24, 2022
0a9cadb
Remove unused variable
cgutman Sep 24, 2022
758dc68
Version 2.5.3
cgutman Sep 24, 2022
254f416
Update moonlight-common-c with GFE 3.26 and HEVC RFI fixes
cgutman Oct 5, 2022
7ab48fb
Use RFI for HEVC only
cgutman Oct 5, 2022
1339059
Update SDL_GameControllerDB
cgutman Oct 5, 2022
f021439
Allow a pairing attempt even if the PC is busy
cgutman Oct 13, 2022
58958ca
Update moonlight-common-c with improved loss recovery
cgutman Oct 31, 2022
cb4b5d5
Improve ALSA underrun error recovery
cgutman Nov 1, 2022
30b563a
Tune ALSA parameters to avoid underruns
cgutman Nov 1, 2022
a9302d0
Fix handling of partial writes and EAGAIN in Amlogic decoder
cgutman Nov 1, 2022
28ace51
Add missing errno.h
cgutman Nov 1, 2022
c2f21b9
Implement foundation for HDR support
cgutman Nov 9, 2022
b26d747
Parse HDR option from moonlight.conf
cgutman Nov 9, 2022
b2192ed
Spawn a display thread if amlvideo is in the pipeline
cgutman Nov 9, 2022
f16dc46
Make blank_fb() into a more generic write_bool() function
cgutman Nov 9, 2022
c3325a8
Don't print error if zero samples are decoded
cgutman Nov 9, 2022
56f84ab
Update moonlight-common-c with audio crash fix
cgutman Nov 9, 2022
098f53c
Fix several build warnings and minor bugs
cgutman Nov 21, 2022
32e8799
Consolidate and improve decode buffer handling
cgutman Nov 21, 2022
66bc1b2
Remove debug code in h264bitstream
cgutman Nov 21, 2022
c985b9e
Fix unchecked return value in aml
cgutman Nov 21, 2022
1feeab9
Fix more warnings
cgutman Nov 21, 2022
62007b9
Fix ensure_buf_size() usage in RK backend
cgutman Nov 21, 2022
e7c611b
Update SDL_GameControllerDB
cgutman Nov 30, 2022
5c23f04
lazy load libamcodec, only require libamcodec.so
TheChoconut Nov 17, 2022
858c884
update amlogic decoder
TheChoconut Nov 17, 2022
4cb30a2
set disable_video to false on startup
TheChoconut Nov 17, 2022
a8d5f7e
Implement ensure_buf_size in aml, lower eagain wait time
TheChoconut Nov 25, 2022
00c28f5
Further bugfixes and improvements for AML decoder
cgutman Dec 4, 2022
7988594
correct the video output rotation option
cmitu Dec 27, 2022
32ebb00
Add horizontal scrolling support with Sunshine
cgutman Feb 22, 2023
8384a24
Modernize HTTPS launch/resume for Sunshine
cgutman Feb 22, 2023
4c58ac9
Update SDL_GameControllerDB
cgutman Feb 22, 2023
b8442bf
Remove GFE-specific references from readme
cgutman Mar 4, 2023
a8a4e89
Fix copy-pasta
cgutman Mar 4, 2023
a9f8a77
Use upstreamed fourcc code for 10-bit NV12 on Rockchip
cgutman Mar 6, 2023
6ab37d0
Accept both primary and overlay planes on Rockchip platforms
cgutman Mar 6, 2023
2e0a014
Update moonlight-common-c
cgutman Mar 6, 2023
db52ac9
Update SDL_GameControllerDB
cgutman Mar 6, 2023
21eb932
Prefer SDL over X11 and enable HEVC for X11/SDL
cgutman Mar 7, 2023
0b80cc1
Try various other non-hwaccel FFmpeg decoders
cgutman Mar 7, 2023
5edf4d3
Print FFmpeg decoder name
cgutman Mar 7, 2023
f486c8e
Only prefer SDL over unaccelerated X11
cgutman Mar 7, 2023
1caf24b
Only use HEVC by default for accelerated X11 platforms
cgutman Mar 7, 2023
c779c19
Change RK backend to use DRM atomic API
cgutman Mar 12, 2023
6310edb
Set HDR metadata and HDMI ALLM for RK backend
cgutman Mar 12, 2023
91022ea
Add HDR metadata struct for old libdrm headers
cgutman Mar 12, 2023
6ea4a76
Support both NA12 and NV15 with runtime selection
cgutman Mar 12, 2023
a328a53
Fix handling of 10-bit YUV buffers on newer RK devices
cgutman Mar 12, 2023
dede55c
Allow modesets for HDR entry/exit
cgutman Mar 12, 2023
dc786e3
Don't assert if the previous commit is still in progress
cgutman Mar 12, 2023
a585072
Just log if atomic commit fails
cgutman Mar 12, 2023
0d0728f
Set HDR metadata using legacy DRM API
cgutman Mar 12, 2023
5bb47ce
Update automatic bitrate logic to match Qt client
cgutman Mar 12, 2023
8d457c4
Update libgamestream from moonlight-stream/moonlight-embedded
Fewnity Apr 25, 2023
f812cf0
Fix compilation
Fewnity Apr 25, 2023
02035c9
Fix pairing issue
Fewnity Apr 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
video/rockchip: define READ_BUF_SIZE as a size of 0x00100000
If you use SZ_1M to define READ_BUF_SIZE you also need to include the sizes.h header file which is apparently missing.
SupervisedThinking committed Jul 3, 2019

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
commit 52efef7a6609e0e473641199d2e4ad21a8a6d83e
2 changes: 1 addition & 1 deletion src/video/rk.c
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@

#include <rockchip/rk_mpi.h>

#define READ_BUF_SIZE (SZ_1M)
#define READ_BUF_SIZE 0x00100000
#define MAX_FRAMES 16
#define RK_H264 7
#define RK_H265 16777220