Project

General

Profile

Actions

Feature #870

closed

make vdr-plugin compatibel for vdr < 10721

Added by herrlado almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
02/02/2012
Due date:
% Done:

0%

Estimated time:

Description

/** * taken from vdr-restfulapi
/
int cHelpers::RecordingLengthInSeconds(cRecording
recording) {
#if APIVERSNUM < 10721
return -1;
#endif

int nf = recording->NumFrames();
if (nf >= 0)
#if APIVERSNUM >= 10703
return int(((double)nf / recording->FramesPerSecond()));
#else
return int((double)nf / FRAMESPERSEC));
#endif
return -1;
}
Actions

Also available in: Atom PDF