From 542661d81c09096b983e041e2a5c7f588cd1cb3e Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sun, 24 Jan 2021 16:52:11 +0100 Subject: fix deadlock for vdr >= 2.4.4 (at least found here) in case of deleting a channel --- HISTORY | 2 ++ state.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/HISTORY b/HISTORY index 6b9386b..da77eeb 100644 --- a/HISTORY +++ b/HISTORY @@ -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" diff --git a/state.c b/state.c index b2dead2..2f9780c 100644 --- a/state.c +++ b/state.c @@ -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) -- cgit v1.2.3