Merge branch 'development' into LTS_development
# Conflicts: # lib/stream.cpp # lib/stream.h # src/input/input.cpp # src/output/output_http_internal.cpp
This commit is contained in:
commit
bef46f969c
8 changed files with 74 additions and 97 deletions
|
@ -307,7 +307,7 @@ namespace Mist{
|
|||
return;
|
||||
}
|
||||
}else{
|
||||
if (!Util::startInput(streamName)){
|
||||
if (!Util::startInput(streamName, "", true, isPushing())){
|
||||
FAIL_MSG("Opening stream %s failed - aborting initialization", streamName.c_str());
|
||||
onFail();
|
||||
return;
|
||||
|
@ -346,8 +346,8 @@ namespace Mist{
|
|||
updateMeta();
|
||||
selectDefaultTracks();
|
||||
if (!myMeta.vod && !isReadyForPlay()){
|
||||
unsigned long long waitUntil = Util::epoch() + 15;
|
||||
while (!myMeta.vod && !isReadyForPlay()){
|
||||
unsigned long long waitUntil = Util::epoch() + 30;
|
||||
while (!myMeta.vod && !isReadyForPlay() && nProxy.userClient.isAlive()){
|
||||
if (Util::epoch() > waitUntil + 45 || (!selectedTracks.size() && Util::epoch() > waitUntil)){
|
||||
INFO_MSG("Giving up waiting for playable tracks. Stream: %s, IP: %s", streamName.c_str(), getConnectedHost().c_str());
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue