diff options
author | Jasmin Jessich <jasmin@anw.at> | 2017-05-25 20:44:06 +0200 |
---|---|---|
committer | Jasmin Jessich <jasmin@anw.at> | 2017-05-25 20:44:06 +0200 |
commit | 3e0774c0968dc38178cadb41558302c8a888b875 (patch) | |
tree | 3bd4cadc1b0f5127b54112b153b0a579b4195436 /pages/epginfo.ecpp | |
parent | 6c7dc2d68ffd8a2097531e3acfee588a27710586 (diff) | |
download | vdr-plugin-live-3e0774c0968dc38178cadb41558302c8a888b875.tar.gz vdr-plugin-live-3e0774c0968dc38178cadb41558302c8a888b875.tar.bz2 |
Fixed lock order in several files
- It is still not finished, but most of the locks should be in the right
order now.
I am still waiting for a VDR patch to check the lock order dynamically.
Diffstat (limited to 'pages/epginfo.ecpp')
-rw-r--r-- | pages/epginfo.ecpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pages/epginfo.ecpp b/pages/epginfo.ecpp index 91e72f9..f177771 100644 --- a/pages/epginfo.ecpp +++ b/pages/epginfo.ecpp @@ -72,6 +72,9 @@ using namespace std; // check for event: else if (epgid.compare(0, event.length(), event) == 0) { #if VDRVERSNUM >= 20301 + /* Need to lock here channels also, because CreateEpgInfo will lock + * it also and this will result in a wrong lock order */ + LOCK_CHANNELS_READ; LOCK_SCHEDULES_READ; epgEvent = EpgEvents::CreateEpgInfo(epgid, Schedules); #else |