Skip to content

Commit

Permalink
Fix mediaStream priority initialization (#1721)
Browse files Browse the repository at this point in the history
  • Loading branch information
lodoyun authored Jun 8, 2021
1 parent ef1b4fb commit 9f646c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erizoAPI/MediaStream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ NAN_METHOD(MediaStream::New) {
if (info.Length() > 8) {
Nan::Utf8String paramPriority(Nan::To<v8::String>(info[8]).ToLocalChecked());
priority = std::string(*paramPriority);
if (priority == "undefined") {
if (priority == "undefined" || priority == "") {
priority = "default";
}
}
Expand Down

0 comments on commit 9f646c8

Please sign in to comment.