don't display active recordings

This commit is contained in:
louis 2015-03-29 13:35:41 +02:00
parent e3ce79dd8c
commit 335f57f0d3

View File

@ -617,6 +617,9 @@ void cViewHelpers::SetLastRecordings(map<string,int> *intTokens, map<string,stri
Recordings.Sort(); Recordings.Sort();
int found = 0; int found = 0;
for (cRecording *recording = Recordings.Last(); recording; recording = Recordings.Prev(recording)) { for (cRecording *recording = Recordings.Last(); recording; recording = Recordings.Prev(recording)) {
if (recording->IsInUse()) {
continue;
}
map< string, string > recVals; map< string, string > recVals;
string recFullPath = recording->Name() ? recording->Name() : ""; string recFullPath = recording->Name() ? recording->Name() : "";
string recName = ""; string recName = "";