Fix for HLS URLs when only one track is available.

This commit is contained in:
Thulinma 2014-08-05 22:59:17 +02:00
parent 507eb80707
commit 875e8ef317
2 changed files with 18 additions and 12 deletions

View file

@ -52,11 +52,11 @@ namespace Controller {
}
return;
}
if (URL.substr(0, 4) == "push"){
if (URL.substr(0, 1) != "/"){
//push-style stream
if (hasViewers(name)){
data["meta"].null();
IPC::sharedPage streamIndex(name,0,false,false);
IPC::sharedPage streamIndex(name,8 * 1024 * 1024,false,false);
if (!streamIndex.mapped){
return;
}