Skip to content

Commit

Permalink
requested_resolution が scale_resolution_down_to になった修正に追従
Browse files Browse the repository at this point in the history
  • Loading branch information
torikizi committed Dec 25, 2024
1 parent c449795 commit 8490c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sora_signaling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ void SoraSignaling::OnRead(boost::system::error_code ec,
// std::optional<int> num_temporal_layers;
// std::optional<double> scale_resolution_down_by;
// std::optional<std::string> scalability_mode;
// std::optional<Resolution> requested_resolution;
// std::optional<Resolution> scale_resolution_down_to;
// bool active = true;
// std::string rid;
// bool request_key_frame = false;
Expand Down Expand Up @@ -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<int>();
v.height = obj.at("maxHeight").to_number<int>();
}
Expand Down

0 comments on commit 8490c5f

Please sign in to comment.