mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-22 17:26:18 +00:00
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
Subject: [PATCH] interface channel count
|
|
|
|
diff --git a/wirbelscan.c b/wirbelscan.c
|
|
index 602e659..aafbec3 100644
|
|
--- a/wirbelscan.c
|
|
+++ b/wirbelscan.c
|
|
@@ -12,6 +12,7 @@
|
|
#include "menusetup.h"
|
|
#include "countries.h"
|
|
#include "satellites.h"
|
|
+extern TChannels NewChannels;
|
|
|
|
static const char *WIRBELSCAN_VERSION = "2021.03.07";
|
|
static const char *WIRBELSCAN_DESCRIPTION = "DVB channel scan for VDR";
|
|
@@ -202,8 +203,8 @@ bool cPluginWirbelscan::Service(const ch
|
|
strcpy(s->transponder, lTransponder.length()? lTransponder.c_str():"none");
|
|
s->progress = s->status == StatusScanning?lProgress:0;
|
|
s->strength = s->status == StatusScanning?lStrength:0;
|
|
- s->numChannels = 0; // Channels.Count(); // not possible any longer.
|
|
- s->newChannels = channelcount; // ((Channels.Count() - channelcount) > 0) && channelcount?Channels.Count() - channelcount:0;
|
|
+ s->numChannels = cChannels::MaxNumber();
|
|
+ s->newChannels = (NewChannels.Count() > cChannels::MaxNumber()) ? NewChannels.Count() - cChannels::MaxNumber():0;
|
|
s->nextTransponders = nextTransponders;
|
|
return true;
|
|
}
|