Only strip off and parse the last "?" from outgoing RTMP URLs, leaving any previous occurrences intact.
This commit is contained in:
parent
c0dd64bc7b
commit
f75ea28221
1 changed files with 5 additions and 5 deletions
|
@ -40,12 +40,12 @@ namespace Mist {
|
||||||
streamOut = streamName;
|
streamOut = streamName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (streamName.find('?') != std::string::npos){
|
if (streamName.rfind('?') != std::string::npos){
|
||||||
streamName = streamName.substr(0, streamName.find('?'));
|
streamName = streamName.substr(0, streamName.rfind('?'));
|
||||||
}
|
}
|
||||||
if (streamOut.find('?') != std::string::npos){
|
if (streamOut.rfind('?') != std::string::npos){
|
||||||
std::string tmpVars = streamOut.substr(streamOut.find('?') + 1);
|
std::string tmpVars = streamOut.substr(streamOut.rfind('?') + 1);
|
||||||
streamOut = streamOut.substr(0, streamOut.find('?'));
|
streamOut = streamOut.substr(0, streamOut.rfind('?'));
|
||||||
parseVars(tmpVars);
|
parseVars(tmpVars);
|
||||||
}
|
}
|
||||||
initialize();
|
initialize();
|
||||||
|
|
Loading…
Add table
Reference in a new issue