mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed backward compatibility to VDR version < 2.1.1 where cRecording::IsInUse() was introduced
This commit is contained in:
parent
3ae6a149f8
commit
60a41eb996
2
HISTORY
2
HISTORY
@ -261,3 +261,5 @@ Version 0.3.3
|
|||||||
|
|
||||||
Version 0.3.4
|
Version 0.3.4
|
||||||
|
|
||||||
|
- fixed backward compatibility to VDR version < 2.1.1 where
|
||||||
|
cRecording::IsInUse() was introduced
|
@ -626,9 +626,11 @@ 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 APIVERSNUM >= 20101
|
||||||
if (recording->IsInUse()) {
|
if (recording->IsInUse()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
map< string, string > recVals;
|
map< string, string > recVals;
|
||||||
string recFullPath = recording->Name() ? recording->Name() : "";
|
string recFullPath = recording->Name() ? recording->Name() : "";
|
||||||
string recName = "";
|
string recName = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user