From 43c45817188c522c541a81cd416c256e5b429400 Mon Sep 17 00:00:00 2001 From: Andy Grundman Date: Tue, 19 Nov 2024 11:37:13 -0500 Subject: [PATCH] Sync up with moonlight-common-c --- app/streaming/audio/renderers/renderer.cpp | 2 +- app/streaming/video/ffmpeg.cpp | 2 +- moonlight-common-c/moonlight-common-c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/streaming/audio/renderers/renderer.cpp b/app/streaming/audio/renderers/renderer.cpp index 3b143ed0..09c52dae 100644 --- a/app/streaming/audio/renderers/renderer.cpp +++ b/app/streaming/audio/renderers/renderer.cpp @@ -115,7 +115,7 @@ int IAudioRenderer::stringifyAudioStats(AUDIO_STATS& stats, char *output, int le output[offset] = 0; double opusFrameSize = (double)m_opusConfig->samplesPerFrame / 48.0; - PRTP_AUDIO_STATS rtpAudioStats = LiGetRTPAudioStats(); + const RTP_AUDIO_STATS* rtpAudioStats = LiGetRTPAudioStats(); double fecOverhead = (double)rtpAudioStats->packetCountFec * 1.0 / (rtpAudioStats->packetCountAudio + rtpAudioStats->packetCountFec); int ret = snprintf( diff --git a/app/streaming/video/ffmpeg.cpp b/app/streaming/video/ffmpeg.cpp index 43c58bfb..9d91f848 100644 --- a/app/streaming/video/ffmpeg.cpp +++ b/app/streaming/video/ffmpeg.cpp @@ -787,7 +787,7 @@ void FFmpegVideoDecoder::stringifyVideoStats(VIDEO_STATS& stats, char* output, i if (stats.receivedFps > 0) { if (m_VideoDecoderCtx != nullptr) { - PRTP_VIDEO_STATS rtpVideoStats = LiGetRTPVideoStats(); + const RTP_VIDEO_STATS* rtpVideoStats = LiGetRTPVideoStats(); float fecOverhead = (float)rtpVideoStats->packetCountFec * 1.0 / (rtpVideoStats->packetCountVideo + rtpVideoStats->packetCountFec); bool useKb = stats.videoMegabitsPerSec < 1 ? true : false; diff --git a/moonlight-common-c/moonlight-common-c b/moonlight-common-c/moonlight-common-c index 8c4c4a74..583754fc 160000 --- a/moonlight-common-c/moonlight-common-c +++ b/moonlight-common-c/moonlight-common-c @@ -1 +1 @@ -Subproject commit 8c4c4a747522c86d25d17b1ec69dbf62855a5f64 +Subproject commit 583754fc686fea5ba0537c78dd5a647c788b138c