From ef057dd3af40c8040b9ac097cd3276eb91f27be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20S=C3=A4dtler?= Date: Mon, 21 Jul 2025 16:34:08 +0200 Subject: [PATCH] frontend: Fix and simplify initialization of supported_codecs --- frontend/utility/GoLiveAPI_PostData.cpp | 18 +++++------------- frontend/utility/models/multitrack-video.hpp | 3 ++- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/frontend/utility/GoLiveAPI_PostData.cpp b/frontend/utility/GoLiveAPI_PostData.cpp index 6e241dc17..02be6f28c 100644 --- a/frontend/utility/GoLiveAPI_PostData.cpp +++ b/frontend/utility/GoLiveAPI_PostData.cpp @@ -21,14 +21,6 @@ GoLiveApi::PostData constructGoLivePost(QString streamKey, const std::optional #include +#include #include @@ -94,7 +95,7 @@ using json = nlohmann::json; struct Client { string name = "obs-studio"; string version; - std::vector supported_codecs; + std::unordered_set supported_codecs; NLOHMANN_DEFINE_TYPE_INTRUSIVE(Client, name, version, supported_codecs) };