Fixes lacking BUFFER_EMPTY trigger
This commit is contained in:
parent
011fb0f6d8
commit
7ca444edc2
1 changed files with 8 additions and 0 deletions
|
@ -475,6 +475,14 @@ namespace Mist {
|
|||
nProxy.metaPages.erase(it->first);
|
||||
activeTracks.erase(it->first);
|
||||
myMeta.tracks.erase(it->first);
|
||||
/*LTS-START*/
|
||||
if (!myMeta.tracks.size()) {
|
||||
if (Triggers::shouldTrigger("STREAM_BUFFER")) {
|
||||
std::string payload = config->getString("streamname") + "\nEMPTY";
|
||||
Triggers::doTrigger("STREAM_BUFFER", payload, config->getString("streamname"));
|
||||
}
|
||||
}
|
||||
/*LTS-END*/
|
||||
changed = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue