summaryrefslogtreecommitdiff
path: root/recording.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 /recording.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 'recording.c')
-rw-r--r--recording.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/recording.c b/recording.c
index 4d60c17c..5dc1b308 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 2.6 2009/01/18 11:02:09 kls Exp $
+ * $Id: recording.c 2.7 2009/01/24 11:31:16 kls Exp $
*/
#include "recording.h"
@@ -1698,7 +1698,7 @@ cString IndexToHMSF(int Index, bool WithFrame, double FramesPerSecond)
{
char buffer[16];
double Seconds;
- int f = modf((Index + 0.5) / FramesPerSecond, &Seconds) * FramesPerSecond + 1;
+ int f = int(modf((Index + 0.5) / FramesPerSecond, &Seconds) * FramesPerSecond + 1);
int s = int(Seconds);
int m = s / 60 % 60;
int h = s / 3600;
@@ -1720,7 +1720,7 @@ int HMSFToIndex(const char *HMSF, double FramesPerSecond)
int SecondsToFrames(int Seconds, double FramesPerSecond)
{
- return round(Seconds * FramesPerSecond);
+ return int(round(Seconds * FramesPerSecond));
}
// --- ReadFrame -------------------------------------------------------------