diff options
author | Martin Schirrmacher <vdr.neutrinoepg@schirrmacher.eu> | 2018-06-24 15:32:46 +0200 |
---|---|---|
committer | Martin Schirrmacher <vdr.neutrinoepg@schirrmacher.eu> | 2018-06-24 15:32:46 +0200 |
commit | f7488c0eac22cd9fdec402c519de775ab330acaf (patch) | |
tree | dab8ae75306dab729e139df5dca15c378355b4be | |
parent | dc4af45eb7a48c3659bc4cfa66e808e9f207fb8f (diff) | |
download | vdr-plugin-neutrinoepg-f7488c0eac22cd9fdec402c519de775ab330acaf.tar.gz vdr-plugin-neutrinoepg-f7488c0eac22cd9fdec402c519de775ab330acaf.tar.bz2 |
fix invalid lock sequence
-rw-r--r-- | neutrinoepg.c | 1 | ||||
-rw-r--r-- | osdmenu.c | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/neutrinoepg.c b/neutrinoepg.c index 38ac5ec..104c612 100644 --- a/neutrinoepg.c +++ b/neutrinoepg.c @@ -69,6 +69,7 @@ class myMenuSetup : public cMenuSetupPage ProgressBarTexts.Append( strdup( tr("Percent")) ); #if APIVERSNUM >= 20301 + LOCK_TIMERS_READ; LOCK_CHANNELS_READ; for (const cChannel *Channel = Channels->First(); Channel; Channel = Channels->Next(Channel)) { if( Channel->GroupSep() ) @@ -20,8 +20,8 @@ myOsdMenu::myOsdMenu() : cOsdMenu("") { int CHNUMWIDTH = 0; #if APIVERSNUM >= 20301 - LOCK_CHANNELS_READ; LOCK_TIMERS_READ; + LOCK_CHANNELS_READ; CHNUMWIDTH = numdigits(Channels->MaxNumber()); #else CHNUMWIDTH = numdigits(Channels.MaxNumber()); @@ -204,6 +204,7 @@ int myOsdMenu::GetGroupByGroupIndex(int groupIndex) { } int myOsdMenu::GetGroupFromChannel(int ChanIndex) { #if APIVERSNUM >= 20301 + LOCK_TIMERS_READ; LOCK_CHANNELS_READ; int GroupIndex = Channels->GetPrevGroup(ChanIndex); #else @@ -216,6 +217,7 @@ int myOsdMenu::GetGroupFromChannel(int ChanIndex) { int myOsdMenu::GetLastGroupIndex(void) { #if APIVERSNUM >= 20301 + LOCK_TIMERS_READ; LOCK_CHANNELS_READ; const cChannel *Channel = Channels->Last(); return Channels->GetPrevGroup( Channel->Index() ); @@ -227,6 +229,7 @@ int myOsdMenu::GetLastGroupIndex(void) { int myOsdMenu::GetFirstGroupIndex(void) { #if APIVERSNUM >= 20301 + LOCK_TIMERS_READ; LOCK_CHANNELS_READ; const cChannel *Channel = Channels->First(); if( Channel->GroupSep() ) @@ -243,6 +246,7 @@ int myOsdMenu::GetFirstGroupIndex(void) { int myOsdMenu::GetFirstChannelOfGroup(int Group) { if( ChannelsHasGroup() == false ) { // no groups -> get First Channel #if APIVERSNUM >= 20301 + LOCK_TIMERS_READ; LOCK_CHANNELS_READ; const cChannel *Channel; Channel = Channels->First(); @@ -264,6 +268,7 @@ int myOsdMenu::GetFirstChannelOfGroup(int Group) { int myOsdMenu::GetLastChannelOfGroup(int Group) { #if APIVERSNUM >= 20301 + LOCK_TIMERS_READ; LOCK_CHANNELS_READ; int NextGroup = Channels->GetNextGroup( GetGroupIndex(Group) ); #else @@ -297,6 +302,7 @@ int myOsdMenu::GetLastChannelOfGroup(int Group) { int myOsdMenu::GetNextChannel(int ChanIndex) { #if APIVERSNUM >= 20301 + LOCK_TIMERS_READ; LOCK_CHANNELS_READ; const cChannel *Channel; Channel = Channels->Get( Channels->GetNextNormal(ChanIndex) ); @@ -324,6 +330,7 @@ if( Channel == NULL ) int myOsdMenu::GetPrevChannel(int ChanIndex) { #if APIVERSNUM >= 20301 + LOCK_TIMERS_READ; LOCK_CHANNELS_READ; const cChannel *Channel; Channel = Channels->Get( Channels->GetPrevNormal(ChanIndex) ); @@ -373,6 +380,7 @@ bool myOsdMenu::isChannelInGroup(int ChanIndex, int Group) { bool myOsdMenu::ChannelsHasGroup(void) { #if APIVERSNUM >= 20301 + LOCK_TIMERS_READ; LOCK_CHANNELS_READ; const cChannel *Channel = Channels->First(); if( Channel->GroupSep() ) @@ -390,6 +398,7 @@ bool myOsdMenu::ChannelsHasGroup(void) { bool myOsdMenu::FirstChannelsHasGroup(void) { #if APIVERSNUM >= 20301 + LOCK_TIMERS_READ; LOCK_CHANNELS_READ; const cChannel *Channel = Channels->First(); #else @@ -503,6 +512,7 @@ void myOsdMenu::LoadSchedules(int shift) { void myOsdMenu::SetMyTitle(void) { char *buffer = NULL; #if APIVERSNUM >= 20301 + LOCK_TIMERS_READ; LOCK_CHANNELS_READ; #endif if( CurrentGroup == 0 && FirstChannelsHasGroup() == false ) { |