summaryrefslogtreecommitdiff
path: root/dvbplayer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-01-24 11:42:24 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-01-24 11:42:24 +0100
commitfa848a6f2ed16af75f4a971968c3a7d469fbd76a (patch)
tree3792ca4ddf633e8389929b668bd128eabf8737b1 /dvbplayer.c
parentc2ecee3d40438bbc0e736d19ecaacdca45b5fa4e (diff)
downloadvdr-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.c5
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