Improved input start behavior for live pushed streams

This commit is contained in:
Thulinma 2018-06-12 11:24:35 +02:00
parent 72ce4fb852
commit 967bc5729c
2 changed files with 34 additions and 7 deletions

View file

@ -143,7 +143,7 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
//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.
uint8_t streamStat = getStreamStatus(streamname);
while (streamStat != STRMSTAT_OFF && streamStat != STRMSTAT_READY){
while (streamStat != STRMSTAT_OFF && streamStat != STRMSTAT_READY && (!isProvider || streamStat != STRMSTAT_WAIT)){
if (streamStat == STRMSTAT_BOOT && overrides.count("throughboot")){
break;
}