Fixed DVR setting parsing for push:// streams.
This commit is contained in:
parent
aa23121330
commit
54811f0a36
1 changed files with 6 additions and 1 deletions
|
@ -34,7 +34,12 @@ namespace Controller {
|
||||||
}
|
}
|
||||||
if (URL.substr(0, 4) == "push"){
|
if (URL.substr(0, 4) == "push"){
|
||||||
std::string pusher = URL.substr(7);
|
std::string pusher = URL.substr(7);
|
||||||
cmd2 = "MistBuffer -s " + name + " " + pusher;
|
if (data.isMember("DVR") && data["DVR"].asInt() > 0){
|
||||||
|
data["DVR"] = data["DVR"].asInt();
|
||||||
|
cmd2 = "MistBuffer -t " + data["DVR"].asString() + " -s " + name + " " + pusher;
|
||||||
|
}else{
|
||||||
|
cmd2 = "MistBuffer -s " + name + " " + pusher;
|
||||||
|
}
|
||||||
Util::Procs::Start(name, Util::getMyPath() + cmd2);
|
Util::Procs::Start(name, Util::getMyPath() + cmd2);
|
||||||
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{
|
||||||
|
|
Loading…
Add table
Reference in a new issue