summaryrefslogtreecommitdiff
path: root/xmltv2vdr.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2012-04-10 05:05:57 +0200
committerJochen Dolze <vdr@dolze.de>2012-04-10 05:05:57 +0200
commit3539d1a5106f2bfeb9d25bc5c14b97d53c8fb81b (patch)
treeb4ed07fbca5045fa139bcabdec8afc1a69aa135d /xmltv2vdr.cpp
parent66f0d0e0ff9a8e6f8d80c0f4f75ae54c8eafcb92 (diff)
downloadvdr-plugin-xmltv2vdr-3539d1a5106f2bfeb9d25bc5c14b97d53c8fb81b.tar.gz
vdr-plugin-xmltv2vdr-3539d1a5106f2bfeb9d25bc5c14b97d53c8fb81b.tar.bz2
Added setting of parential rating in import
Diffstat (limited to 'xmltv2vdr.cpp')
-rw-r--r--xmltv2vdr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmltv2vdr.cpp b/xmltv2vdr.cpp
index b34f855..08ff990 100644
--- a/xmltv2vdr.cpp
+++ b/xmltv2vdr.cpp
@@ -206,6 +206,8 @@ void cEPGTimer::Action()
struct stat statbuf;
if (stat(epgfile,&statbuf)==-1) return; // no database? -> exit immediately
if (!statbuf.st_size) return; // no database? -> exit immediately
+ if (Timers.BeingEdited()) return;
+ Timers.IncBeingEdited();
SetPriority(19);
if (ioprio_set(1,getpid(),7 | 3 << 13)==-1)
{
@@ -217,6 +219,7 @@ void cEPGTimer::Action()
if (!schedules)
{
delete schedulesLock;
+ Timers.DecBeingEdited();
return;
}
@@ -247,6 +250,7 @@ void cEPGTimer::Action()
}
delete xevent;
}
+ Timers.DecBeingEdited();
delete schedulesLock;
cSchedules::Cleanup(true);
}