Make controller no longer start buffers for VoD streams.

This commit is contained in:
Thulinma 2012-09-03 14:43:02 +02:00
parent 6798a3074a
commit d6b4687ab2

View file

@ -236,6 +236,7 @@ void startStream(std::string name, JSON::Value & data){
Log("BUFF", "(re)starting stream buffer "+name+" for push data from "+pusher); Log("BUFF", "(re)starting stream buffer "+name+" for push data from "+pusher);
}else{ }else{
if (URL.substr(0, 1) == "/"){ if (URL.substr(0, 1) == "/"){
return; //MistPlayer handles VoD
struct stat fileinfo; struct stat fileinfo;
if (stat(URL.c_str(), &fileinfo) != 0 || S_ISDIR(fileinfo.st_mode)){ if (stat(URL.c_str(), &fileinfo) != 0 || S_ISDIR(fileinfo.st_mode)){
Log("BUFF", "*Not* starting stream "+name+"! File not found: "+URL); Log("BUFF", "*Not* starting stream "+name+"! File not found: "+URL);