Project

General

Profile

Actions

Feature #870

closed

make vdr-plugin compatibel for vdr < 10721

Added by herrlado about 12 years ago. Updated almost 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 #1

Updated by herrlado almost 12 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF