mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 09:25:49 +00:00
Plumb clientRefreshRateX100 for modern GFE versions
This commit is contained in:
parent
cafc4d8125
commit
bf737dc959
@ -51,6 +51,11 @@ typedef struct _STREAM_CONFIGURATION {
|
|||||||
// (or in addition to) improving image quality.
|
// (or in addition to) improving image quality.
|
||||||
int hevcBitratePercentageMultiplier;
|
int hevcBitratePercentageMultiplier;
|
||||||
|
|
||||||
|
// If specified, the client's display refresh rate x 100. For example,
|
||||||
|
// 59.94 Hz would be specified as 5994. This is used by recent versions
|
||||||
|
// of GFE for enhanced frame pacing.
|
||||||
|
int clientRefreshRateX100;
|
||||||
|
|
||||||
// AES encryption data for the remote input stream. This must be
|
// AES encryption data for the remote input stream. This must be
|
||||||
// the same as what was passed as rikey and rikeyid
|
// the same as what was passed as rikey and rikeyid
|
||||||
// in /launch and /resume requests.
|
// in /launch and /resume requests.
|
||||||
|
@ -334,6 +334,9 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
|||||||
// some decoders that don't like the default of having 16 reference frames.
|
// some decoders that don't like the default of having 16 reference frames.
|
||||||
err |= addAttributeString(&optionHead, "x-nv-video[0].maxNumReferenceFrames", "1");
|
err |= addAttributeString(&optionHead, "x-nv-video[0].maxNumReferenceFrames", "1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sprintf(payloadStr, "%d", StreamConfig.clientRefreshRateX100);
|
||||||
|
err |= addAttributeString(&optionHead, "x-nv-video[0].clientRefreshRateX100", payloadStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StreamConfig.audioConfiguration == AUDIO_CONFIGURATION_51_SURROUND) {
|
if (StreamConfig.audioConfiguration == AUDIO_CONFIGURATION_51_SURROUND) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user