mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-01-22 08:29:12 +00:00
00b58532e5
migrate build to librepfunc
26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
Subject: [PATCH] interface channel count
|
|
|
|
diff --git a/wirbelscan.cpp b/wirbelscan.cpp
|
|
index 602e659..aafbec3 100644
|
|
--- a/wirbelscan.cpp
|
|
+++ b/wirbelscan.cpp
|
|
@@ -20,6 +20,7 @@
|
|
extern int channelcount; // menusetup.c
|
|
extern int nextTransponders; // scanfilter.c
|
|
extern cScanner* Scanner;
|
|
+extern TChannels NewChannels;
|
|
|
|
const char* WIRBELSCAN_VERSION = "2023.10.15"; /* YYYY.MM.DD */
|
|
const char* WIRBELSCAN_DESCRIPTION = "DVB channel scan for VDR";
|
|
@@ -218,8 +219,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;
|
|
}
|