fixed backward compatibility to VDR version < 2.1.1 where cRecording::IsInUse() was introduced

This commit is contained in:
louis 2015-04-02 07:27:15 +02:00
parent 3ae6a149f8
commit 60a41eb996
2 changed files with 5 additions and 1 deletions

View File

@ -260,4 +260,6 @@ Version 0.3.3
no signal information will be fetched to improve performance.
Version 0.3.4
- fixed backward compatibility to VDR version < 2.1.1 where
cRecording::IsInUse() was introduced

View File

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