From 66a78f0d406fe992684585b6649986bac9160594 Mon Sep 17 00:00:00 2001 From: loki Date: Wed, 19 May 2021 09:42:38 +0200 Subject: [PATCH 1/2] Fix windows build --- sunshine/platform/windows/input.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sunshine/platform/windows/input.cpp b/sunshine/platform/windows/input.cpp index d7667694..0d34ad1e 100755 --- a/sunshine/platform/windows/input.cpp +++ b/sunshine/platform/windows/input.cpp @@ -2,11 +2,14 @@ #include #include +// prevent clang format from "optimizing" the header include order +// clang-format off +#include #include #include -#include #include #include +// clang-format on #include From c6a0eeef3ff48e7c143524d9e90e4ea09ff719e5 Mon Sep 17 00:00:00 2001 From: Conn O'Griofa Date: Thu, 20 May 2021 00:21:38 +0100 Subject: [PATCH 2/2] Force IDR frames for libx265 encoder Parameter is needed to avoid infinite black screen with "Waiting for IDR frame" in moonlight-qt (3.1.3) on Windows. --- sunshine/video.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sunshine/video.cpp b/sunshine/video.cpp index 1069d0e6..fd077eea 100644 --- a/sunshine/video.cpp +++ b/sunshine/video.cpp @@ -315,6 +315,7 @@ static encoder_t software { // It also looks like gop_size isn't passed on to x265, so we have to set // 'keyint=-1' in the parameters ourselves. { + { "forced-idr"s, 1 }, { "x265-params"s, "info=0:keyint=-1"s }, { "preset"s, &config::video.sw.preset }, { "tune"s, &config::video.sw.tune } },