Skip to content

Commit

Permalink
Fix the way we set the stream priority in ErizoAPI (#1718)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague authored May 31, 2021
1 parent 279d4d8 commit 39db637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erizoAPI/MediaStream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ NAN_METHOD(MediaStream::New) {
nlohmann::json handlers_json = nlohmann::json::parse(parameters);
std::map<std::string, std::string> params_dic = {};
for (json::iterator it = handlers_json.begin(); it != handlers_json.end(); ++it) {
params_dic.insert((std::pair<std::string, std::string>(it.key(), it.value())));
params_dic.insert((std::pair<std::string, std::string>(it.key(), it.value())));
}
custom_handlers.push_back(params_dic);
}
Expand All @@ -213,7 +213,7 @@ NAN_METHOD(MediaStream::New) {

std::string priority = "default";
if (info.Length() > 8) {
Nan::Utf8String paramPriority(Nan::To<v8::String>(info[7]).ToLocalChecked());
Nan::Utf8String paramPriority(Nan::To<v8::String>(info[8]).ToLocalChecked());
priority = std::string(*paramPriority);
if (priority == "undefined") {
priority = "default";
Expand Down

0 comments on commit 39db637

Please sign in to comment.