Tweaked Stream and RTMP lib verbosity levels.
This commit is contained in:
parent
680b2625c1
commit
00d06fe293
2 changed files with 6 additions and 6 deletions
|
@ -52,18 +52,18 @@ Socket::Connection Util::Stream::getStream(std::string streamname){
|
|||
JSON::Value ServConf = JSON::fromFile("/tmp/mist/streamlist");
|
||||
if (ServConf["streams"].isMember(streamname)){
|
||||
if (ServConf["streams"][streamname]["source"].asString()[0] == '/'){
|
||||
#if DEBUG >= 4
|
||||
#if DEBUG >= 5
|
||||
std::cerr << "Opening VoD stream from file " << ServConf["streams"][streamname]["source"].asString() << std::endl;
|
||||
#endif
|
||||
return getVod(ServConf["streams"][streamname]["source"].asString());
|
||||
}else{
|
||||
#if DEBUG >= 4
|
||||
#if DEBUG >= 5
|
||||
std::cerr << "Opening live stream " << streamname << std::endl;
|
||||
#endif
|
||||
return Socket::Connection("/tmp/mist/stream_" + streamname);
|
||||
}
|
||||
}
|
||||
#if DEBUG >= 4
|
||||
#if DEBUG >= 5
|
||||
std::cerr << "Could not open stream " << streamname << " - stream not found" << std::endl;
|
||||
#endif
|
||||
return Socket::Connection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue