Actions
Feature #870
closedmake vdr-plugin compatibel for vdr < 10721
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