diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-01-24 11:42:24 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-01-24 11:42:24 +0100 |
commit | fa848a6f2ed16af75f4a971968c3a7d469fbd76a (patch) | |
tree | 3792ca4ddf633e8389929b668bd128eabf8737b1 /dvbplayer.c | |
parent | c2ecee3d40438bbc0e736d19ecaacdca45b5fa4e (diff) | |
download | vdr-fa848a6f2ed16af75f4a971968c3a7d469fbd76a.tar.gz vdr-fa848a6f2ed16af75f4a971968c3a7d469fbd76a.tar.bz2 |
Added an 'int' typecast to calculations involving FramesPerSecond() to avoid compiler warnings
Diffstat (limited to 'dvbplayer.c')
-rw-r--r-- | dvbplayer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dvbplayer.c b/dvbplayer.c index 9de7e486..9e3cd2fd 100644 --- a/dvbplayer.c +++ b/dvbplayer.c @@ -4,10 +4,11 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbplayer.c 2.1 2009/01/05 16:52:40 kls Exp $ + * $Id: dvbplayer.c 2.2 2009/01/24 11:42:07 kls Exp $ */ #include "dvbplayer.h" +#include <math.h> #include <stdlib.h> #include "recording.h" #include "remux.h" @@ -347,7 +348,7 @@ bool cDvbPlayer::Save(void) if (index) { int Index = writeIndex; if (Index >= 0) { - Index -= RESUMEBACKUP * framesPerSecond; + Index -= int(round(RESUMEBACKUP * framesPerSecond)); if (Index > 0) Index = index->GetNextIFrame(Index, false); else |