diff options
Diffstat (limited to 'templatefile.c')
-rw-r--r-- | templatefile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templatefile.c b/templatefile.c index 44ade92..fdce3bf 100644 --- a/templatefile.c +++ b/templatefile.c @@ -210,6 +210,12 @@ bool cTemplFile::Parse(const char *Name, const char *Value) void cTemplFile::PrepareDefaultTemplates() { char channelnr[20] = ""; +#if VDRVERSNUM > 20300 + LOCK_CHANNELS_READ; + const cChannels *vdrchannels = Channels; +#else + cChannels *vdrchannels = &Channels; +#endif sprintf(channelnr, "%%chnr%%:%d|", CHNUMWIDTH); bool text2skin = !(strcmp(Setup.OSDSkin, "soppalusikka") == 0 || |