summaryrefslogtreecommitdiff
path: root/schedule.ecpp
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-02 21:04:10 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-02 21:04:10 +0000
commitccbbf7ff46540005386c9e2af758abce4a0e9acd (patch)
tree48fefefa3c4a4cda43aa28e7a01bcdbb9fd16183 /schedule.ecpp
parent78e1ebd904bb609f753cb8cfea56d6ecdd643a2c (diff)
downloadvdr-plugin-live-ccbbf7ff46540005386c9e2af758abce4a0e9acd.tar.gz
vdr-plugin-live-ccbbf7ff46540005386c9e2af758abce4a0e9acd.tar.bz2
- moved lock into local scope
Diffstat (limited to 'schedule.ecpp')
-rw-r--r--schedule.ecpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/schedule.ecpp b/schedule.ecpp
index 2e3ea44..76659b4 100644
--- a/schedule.ecpp
+++ b/schedule.ecpp
@@ -4,9 +4,6 @@
#include <vdr/epg.h>
#include <vdr/config.h>
-cSchedulesLock schedulesLock;
-const cSchedules* schedules = cSchedules::Schedules(schedulesLock);
-
</%pre>
<%args>
int channel;
@@ -20,6 +17,9 @@ int channel;
Programm für Channel Nummer <$ channel $><br/>
<{
+ cSchedulesLock schedulesLock;
+ const cSchedules* schedules = cSchedules::Schedules(schedulesLock);
+
cChannel* Channel = Channels.GetByNumber(channel);
if (Channel) {
const cSchedule *Schedule = schedules->GetSchedule(Channel);