Fix stream pushing from various RTMP sources that pass get parameters in the streamname.

This commit is contained in:
Thulinma 2014-04-15 13:28:00 +02:00
parent 016dcf36e0
commit 22ad0f2880

View file

@ -233,6 +233,7 @@ namespace Mist {
if ((amfData.getContentP(0)->StrValue() == "publish")) {
if (amfData.getContentP(3)) {
streamName = amfData.getContentP(3)->StrValue();
Util::Stream::sanitizeName(streamName);
//pull the server configuration
JSON::Value servConf = JSON::fromFile(Util::getTmpFolder() + "streamlist");
if (servConf.isMember("streams") && servConf["streams"].isMember(streamName)){