diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-10-06 12:44:33 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-10-06 12:44:33 +0200 |
commit | f78f51431da4f55e23c47a95284e26858cc946a2 (patch) | |
tree | 8ce1ae4b37f252bf1c4c15dcf02b7a162d79f4e7 /channels.c | |
parent | c5b154f58a176882045879230c09d1fdfe043d4b (diff) | |
download | vdr-f78f51431da4f55e23c47a95284e26858cc946a2.tar.gz vdr-f78f51431da4f55e23c47a95284e26858cc946a2.tar.bz2 |
Fixed storing channel parameters with 0 values
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.c 1.2 2002/10/06 11:53:45 kls Exp $ + * $Id: channels.c 1.3 2002/10/06 12:41:49 kls Exp $ */ #include "channels.h" @@ -200,10 +200,10 @@ cChannel::cChannel(const cChannel *Channel) static int PrintParameter(char *p, char Name, int Value) { - //XXX return Value > 0 && Value != 999 ? sprintf(p, "%c%d", Name, Value) : 0; + //XXX return Value >= 0 && Value != 999 ? sprintf(p, "%c%d", Name, Value) : 0; //XXX let's store 999 for the moment, until we generally switch to the NEWSTRUCT //XXX driver (where the defaults will all be AUTO) - return Value > 0 && (Value != 999 || (Name != 'I' && Name != 'C')) ? sprintf(p, "%c%d", Name, Value) : 0; + return Value >= 0 && (Value != 999 || (Name != 'I' && Name != 'C')) ? sprintf(p, "%c%d", Name, Value) : 0; } const char *cChannel::ParametersToString(void) |