summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-12-06 10:29:23 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-12-06 10:29:23 +0100
commit9a0236b9e249f002accfb222a969be0c676115b7 (patch)
tree716651c5a29f20266b8074fb8301ce2be9f93c98 /recording.c
parentc005465d9005c7b8918564055639c1766c099121 (diff)
downloadvdr-9a0236b9e249f002accfb222a969be0c676115b7.tar.gz
vdr-9a0236b9e249f002accfb222a969be0c676115b7.tar.bz2
Changed reading and writing of floating point numbers into configuration files to make it independent of the decimal point used in the current locale
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 00f95ca6..87ca8efe 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.77 2012/12/05 11:08:47 kls Exp $
+ * $Id: recording.c 2.78 2012/12/06 09:35:13 kls Exp $
*/
#include "recording.h"
@@ -455,7 +455,7 @@ bool cRecordingInfo::Read(FILE *f)
}
}
break;
- case 'F': framesPerSecond = atof(t);
+ case 'F': framesPerSecond = atod(t);
break;
case 'L': lifetime = atoi(t);
break;
@@ -482,7 +482,7 @@ bool cRecordingInfo::Write(FILE *f, const char *Prefix) const
if (channelID.Valid())
fprintf(f, "%sC %s%s%s\n", Prefix, *channelID.ToString(), channelName ? " " : "", channelName ? channelName : "");
event->Dump(f, Prefix, true);
- fprintf(f, "%sF %.10g\n", Prefix, framesPerSecond);
+ fprintf(f, "%sF %s\n", Prefix, *dtoa(framesPerSecond, "%.10g"));
fprintf(f, "%sP %d\n", Prefix, priority);
fprintf(f, "%sL %d\n", Prefix, lifetime);
if (aux)