summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-05-28 13:08:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-05-28 13:08:09 +0200
commit2751e239eba118a319c1c8518fb199dc5d4114e4 (patch)
tree411481a6776b71cbd363680827a6c1b17bc3ebe0 /svdrp.c
parent0af3ed548c86b5b2670fbf5610ee41d36b48761a (diff)
downloadvdr-2751e239eba118a319c1c8518fb199dc5d4114e4.tar.gz
vdr-2751e239eba118a319c1c8518fb199dc5d4114e4.tar.bz2
Fixed the locking sequence when dumping EPG data
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/svdrp.c b/svdrp.c
index f402c21a..9caf6edf 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 4.18 2017/05/18 15:51:24 kls Exp $
+ * $Id: svdrp.c 4.19 2017/05/28 13:05:23 kls Exp $
*/
#include "svdrp.h"
@@ -1615,6 +1615,7 @@ void cSVDRPServer::CmdLSTC(const char *Option)
void cSVDRPServer::CmdLSTE(const char *Option)
{
+ LOCK_CHANNELS_READ;
LOCK_SCHEDULES_READ;
const cSchedule* Schedule = NULL;
eDumpMode DumpMode = dmAll;
@@ -1646,7 +1647,6 @@ void cSVDRPServer::CmdLSTE(const char *Option)
}
}
else if (!Schedule) {
- LOCK_CHANNELS_READ;
const cChannel* Channel = NULL;
if (isnumber(p))
Channel = Channels->GetByNumber(strtol(Option, NULL, 10));
@@ -1676,7 +1676,7 @@ void cSVDRPServer::CmdLSTE(const char *Option)
FILE *f = fdopen(fd, "w");
if (f) {
if (Schedule)
- Schedule->Dump(f, "215-", DumpMode, AtTime);
+ Schedule->Dump(Channels, f, "215-", DumpMode, AtTime);
else
Schedules->Dump(f, "215-", DumpMode, AtTime);
fflush(f);