diff --git a/HISTORY b/HISTORY index 37136f79..8acb3272 100644 --- a/HISTORY +++ b/HISTORY @@ -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). diff --git a/config.c b/config.c index b4228931..2c87985a 100644 --- a/config.c +++ b/config.c @@ -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; diff --git a/config.h b/config.h index 36d9e782..693e9271 100644 --- a/config.h +++ b/config.h @@ -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;