From 8490c5f8fb5d18f8e0a46a5d8efe86ccbaa4cb2c Mon Sep 17 00:00:00 2001 From: torikizi <51085972+torikizi@users.noreply.github.com> Date: Wed, 25 Dec 2024 13:53:47 +0900 Subject: [PATCH] =?UTF-8?q?requested=5Fresolution=20=E3=81=8C=20scale=5Fre?= =?UTF-8?q?solution=5Fdown=5Fto=20=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=9F?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E3=81=AB=E8=BF=BD=E5=BE=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sora_signaling.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sora_signaling.cpp b/src/sora_signaling.cpp index 59f83a3..fea3a03 100644 --- a/src/sora_signaling.cpp +++ b/src/sora_signaling.cpp @@ -997,7 +997,7 @@ void SoraSignaling::OnRead(boost::system::error_code ec, // std::optional num_temporal_layers; // std::optional scale_resolution_down_by; // std::optional scalability_mode; - // std::optional requested_resolution; + // std::optional scale_resolution_down_to; // bool active = true; // std::string rid; // bool request_key_frame = false; @@ -1029,7 +1029,7 @@ void SoraSignaling::OnRead(boost::system::error_code ec, } if (p.count("scaleResolutionDownTo") != 0) { auto& obj = p["scaleResolutionDownTo"].as_object(); - auto& v = params.requested_resolution.emplace(); + auto& v = params.scale_resolution_down_to.emplace(); v.width = obj.at("maxWidth").to_number(); v.height = obj.at("maxHeight").to_number(); }