Skip to content

Commit

Permalink
SRT: url supports multiple QueryStrings by comma-separated key-value …
Browse files Browse the repository at this point in the history
…pairs with no nesting (ossrs#2893)
  • Loading branch information
zhouxiaojun2008 committed Feb 9, 2022
1 parent 6d40668 commit 33b03f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trunk/src/srt/srt_conn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ bool get_streamid_info(const std::string& streamid, int& mode, std::string& url_
real_streamid = streamid.substr(4);

string_split(real_streamid, ",", info_vec);
if (info_vec.size() < 1) {
if (info_vec.size() < 2) {
return false;
}

Expand Down Expand Up @@ -117,11 +117,11 @@ bool get_streamid_info(const std::string& streamid, int& mode, std::string& url_
} else {
mode = PUSH_SRT_MODE;
}
}else if (key == "secret") {
} else if (key == "secret") {
secret = value;
}else if (key == "token"){
} else if (key == "token"){
token = value;
}else {
} else {
continue;
}
}
Expand Down

0 comments on commit 33b03f4

Please sign in to comment.