From: Chris Tallon Date: Tue, 14 Feb 2017 16:18:05 +0000 (+0000) Subject: Fix calls to VDRs Channels.GetByNumber X-Git-Tag: 0-5-0~3 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=f6d6963428d12505edbc3a2f9101d26f109529cc;p=vompserver.git Fix calls to VDRs Channels.GetByNumber --- 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;