diff options
author | Manuel Reimer <manuel.reimer@gmx.de> | 2021-01-28 10:59:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 10:59:24 +0100 |
commit | 33d676489a6138737d7db9827bca08abbfc1c82a (patch) | |
tree | 1467d015307051166318ad6a9c70f6e49643b408 | |
parent | 8d09abadee5ffc20ae2b2200de784f5e78479158 (diff) | |
parent | 542661d81c09096b983e041e2a5c7f588cd1cb3e (diff) | |
download | vdr-plugin-graphlcd-33d676489a6138737d7db9827bca08abbfc1c82a.tar.gz vdr-plugin-graphlcd-33d676489a6138737d7db9827bca08abbfc1c82a.tar.bz2 |
Merge pull request #3 from pbiering/fix-channel-delete-deadlock
fix deadlock in case of deleting a channel
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | state.c | 4 |
2 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,7 @@ VDR Plugin 'graphlcd' Revision History ------------------------------------- +2021-01-24 +- [pbiering] fix deadlock for vdr >= 2.4.4 (at least found here) in case of deleting a channel 2021-01-17 - Fix name inconsistency between read and write of setup config value "ShowReplayLogo" @@ -674,7 +674,9 @@ void cGraphLCDState::UpdateChannelInfo(void) mutex.Unlock(); } +#if APIVERSNUM < 20404 mutex.Lock(); +#endif #if APIVERSNUM < 20301 cChannel * ch = Channels.GetByNumber(mChannel.number); #else @@ -710,7 +712,9 @@ void cGraphLCDState::UpdateChannelInfo(void) mChannel.isRadio = false; } +#if APIVERSNUM < 20404 mutex.Unlock(); +#endif } void cGraphLCDState::UpdateEventInfo(void) |