0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-01-22 08:29:12 +00:00
Rudi Heitbaum 00b58532e5 vdr-plugin-wirbelscan: update to 2023.10.15
migrate build to librepfunc
2023-11-12 13:25:11 +00:00

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;
}