summaryrefslogtreecommitdiff
path: root/recstatus.c
diff options
context:
space:
mode:
authorJohann Friedrichs <johann.friedrichs@web.de>2017-10-15 11:22:55 +0200
committerFrank Neumann <fnu@yavdr.org>2017-10-15 11:22:55 +0200
commitc7c02e2031801015dc70d6d4652e71ab9c2a2ea6 (patch)
tree7c0bbf6c74e97c90d93ad0d4b0c6db57b9e8cb90 /recstatus.c
parented8efb5807338c947a18fe0272ac05f19e94a290 (diff)
downloadvdr-plugin-epgsearch-c7c02e2031801015dc70d6d4652e71ab9c2a2ea6.tar.gz
vdr-plugin-epgsearch-c7c02e2031801015dc70d6d4652e71ab9c2a2ea6.tar.bz2
Fix deadlock.
Diffstat (limited to 'recstatus.c')
-rw-r--r--recstatus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/recstatus.c b/recstatus.c
index 0b382fd..20a31a6 100644
--- a/recstatus.c
+++ b/recstatus.c
@@ -107,8 +107,7 @@ void cRecStatusMonitor::Recording(const cDevice *Device, const char *Name, const
if (!On)
{
// must be done in a different thread because we hold timer and scheduling lock here
- while (RecdoneThread.Active()) cCondWait::SleepMs(100); // wait before changing filename
- RecdoneThread.SetFilename(Filename);
+ RecdoneThread.SetFilename(Filename); // push_back Filename for processing
RecdoneThread.Start();
}
}