diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-02-14 15:16:46 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-02-14 15:16:46 +0100 |
commit | 11e04d4228b00126fa2a9992a6b6e264d8d71ea3 (patch) | |
tree | 1c79af7c18ccd921b67750d647a7b773741e9e6c | |
parent | 62dfd2f996cb9480ea2c1db054a2fa657de0900b (diff) | |
download | vdr-11e04d4228b00126fa2a9992a6b6e264d8d71ea3.tar.gz vdr-11e04d4228b00126fa2a9992a6b6e264d8d71ea3.tar.bz2 |
Moved the definition of TIMERMACRO_TITLE and TIMERMACRO_EPISODE from recording.h to config.h and using them to initialize Setup.NameInstantRecord
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | config.c | 4 | ||||
-rw-r--r-- | config.h | 5 | ||||
-rw-r--r-- | recording.h | 4 |
4 files changed, 10 insertions, 6 deletions
@@ -7615,3 +7615,6 @@ Video Disk Recorder Revision History - No longer checking for EOPNOTSUPP in cDvbTuner::GetSignalQuality() to avoid breaking this function in case the driver suddenly decides to return a different errno value if an operation is not supported. +- Moved the definition of TIMERMACRO_TITLE and TIMERMACRO_EPISODE from recording.h to + config.h and using them to initialize Setup.NameInstantRecord (avoids having the same + information in two places). @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 2.34 2013/02/05 11:16:08 kls Exp $ + * $Id: config.c 2.35 2013/02/14 15:14:37 kls Exp $ */ #include "config.h" @@ -383,7 +383,7 @@ cSetup::cSetup(void) MenuScrollWrap = 0; MenuKeyCloses = 0; MarkInstantRecord = 1; - strcpy(NameInstantRecord, "TITLE EPISODE"); + strcpy(NameInstantRecord, TIMERMACRO_TITLE " " TIMERMACRO_EPISODE); InstantRecordTime = DEFINSTRECTIME; LnbSLOF = 11700; LnbFrequLo = 9750; @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 2.66 2013/02/11 11:27:34 kls Exp $ + * $Id: config.h 2.67 2013/02/14 15:13:59 kls Exp $ */ #ifndef __CONFIG_H @@ -44,6 +44,9 @@ #define MAXLIFETIME 99 #define DEFINSTRECTIME 180 // default instant recording time (minutes) +#define TIMERMACRO_TITLE "TITLE" +#define TIMERMACRO_EPISODE "EPISODE" + #define MINOSDWIDTH 480 #define MAXOSDWIDTH 1920 #define MINOSDHEIGHT 324 diff --git a/recording.h b/recording.h index 584a55f4..48d6f683 100644 --- a/recording.h +++ b/recording.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.h 2.43 2013/02/11 11:18:13 kls Exp $ + * $Id: recording.h 2.44 2013/02/14 15:13:14 kls Exp $ */ #ifndef __RECORDING_H @@ -19,8 +19,6 @@ #include "tools.h" #define FOLDERDELIMCHAR '~' -#define TIMERMACRO_TITLE "TITLE" -#define TIMERMACRO_EPISODE "EPISODE" extern int DirectoryPathMax; extern int DirectoryNameMax; |