From f6d6963428d12505edbc3a2f9101d26f109529cc Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Tue, 14 Feb 2017 16:18:05 +0000 Subject: [PATCH] Fix calls to VDRs Channels.GetByNumber --- vompclientrrproc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 vompclientrrproc.c diff --git a/vompclientrrproc.c b/vompclientrrproc.c old mode 100644 new mode 100755 index 31dc82c..ba253c5 --- a/vompclientrrproc.c +++ b/vompclientrrproc.c @@ -2061,7 +2061,7 @@ int VompClientRRProc::processGetEventScraperEventType() ULONG eventid = ntohl(*(ULONG*)(req->data+4)); const cEvent *event = NULL; - const cChannel* channel = Channels.GetByNumber(channelNumber); + const cChannel* channel = Channels.GetByNumber(channelid); #if VDRVERSNUM < 10300 cMutexLock MutexLock; @@ -2276,7 +2276,7 @@ int VompClientRRProc::processLoadTvMediaEventThumb() UINT channelid = ntohl(*(ULONG*)req->data); tvreq.primary_id = ntohl(*(ULONG*)(req->data+4)); tvreq.secondary_id = 0; - const cChannel* channel = Channels.GetByNumber(channelNumber); + const cChannel* channel = Channels.GetByNumber(channelid); if (channel) tvreq.primary_name = std::string((const char*)channel->GetChannelID().ToString()); tvreq.type_pict = 1; @@ -2301,7 +2301,7 @@ int VompClientRRProc::processLoadChannelLogo() UINT channelid = ntohl(*(ULONG*)req->data); tvreq.primary_id = channelid; tvreq.secondary_id = 0; - const cChannel* channel = Channels.GetByNumber(channelNumber); + const cChannel* channel = Channels.GetByNumber(channelid); if (channel) tvreq.primary_name = std::string((const char*)channel->Name()); tvreq.type_pict = 1; -- 2.39.2