diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2017-05-28 13:08:09 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2017-05-28 13:08:09 +0200 |
commit | 2751e239eba118a319c1c8518fb199dc5d4114e4 (patch) | |
tree | 411481a6776b71cbd363680827a6c1b17bc3ebe0 /svdrp.c | |
parent | 0af3ed548c86b5b2670fbf5610ee41d36b48761a (diff) | |
download | vdr-2751e239eba118a319c1c8518fb199dc5d4114e4.tar.gz vdr-2751e239eba118a319c1c8518fb199dc5d4114e4.tar.bz2 |
Fixed the locking sequence when dumping EPG data
Diffstat (limited to 'svdrp.c')
-rw-r--r-- | svdrp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |