Merge branch 'development' into LTS_development
This commit is contained in:
commit
78101d8c91
1 changed files with 3 additions and 1 deletions
|
@ -193,7 +193,9 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
|
||||||
//Note: this uses the _whole_ stream name, including + (if any).
|
//Note: this uses the _whole_ stream name, including + (if any).
|
||||||
//This means "test+a" and "test+b" have separate locks and do not interact with each other.
|
//This means "test+a" and "test+b" have separate locks and do not interact with each other.
|
||||||
uint8_t streamStat = getStreamStatus(streamname);
|
uint8_t streamStat = getStreamStatus(streamname);
|
||||||
while (streamStat != STRMSTAT_OFF && streamStat != STRMSTAT_READY && (!isProvider || streamStat != STRMSTAT_WAIT)){
|
//Wait for a maximum of 240 x 250ms sleeps = 60 seconds
|
||||||
|
size_t sleeps = 0;
|
||||||
|
while (++sleeps < 240 && streamStat != STRMSTAT_OFF && streamStat != STRMSTAT_READY && (!isProvider || streamStat != STRMSTAT_WAIT)){
|
||||||
if (streamStat == STRMSTAT_BOOT && overrides.count("throughboot")){
|
if (streamStat == STRMSTAT_BOOT && overrides.count("throughboot")){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue