aboutsummaryrefslogtreecommitdiff
path: root/multimedia/vdr-plugin-infosatepg/files/patch-infosatepg.cpp
blob: 4e856cf8db0103c5245fe42805f8f6dec789b452 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- infosatepg.cpp.orig
+++ infosatepg.cpp
@@ -190,10 +190,14 @@ void cPluginInfosatepg::MainThreadHook(v
         if (dev)
         {
             if (!dev->ProvidesTransponder(chan)) continue; // device cannot provide transponder -> skip
+#if VDRVERSNUM >= 10726
+            if (statusMonitor->m_LiveView) continue; // EITScanner is updating EPG -> skip
+#else
             if (EITScanner.UsesDevice(dev)) continue; // EITScanner is updating EPG -> skip
+#endif
             if (dev->Receiving()) continue; // device is recording -> skip
             if (dev->IsPrimaryDevice()) continue; // device is primary -> skip
-            if (cDevice::ActualDevice()->CardIndex()==i) continue; // device is live viewing -> skip
+            if (cDevice::ActualDevice()->CardIndex()==dev->CardIndex()) continue; // device is live viewing -> skip
             if (dev->IsTunedToTransponder(chan))
             {
                 // we already have a device which is tuned (maybe switched manually?)
@@ -403,7 +407,7 @@ cString cPluginInfosatepg::SVDRPCommand(
         cString head2;
         head2="\n" \
               "      |        | missed  |            |            | unlocated\n" \
-              " Day  | Date   | Packets | Received %% | Processed  | Events\n" \
+              " Day  | Date   | Packets | Received % | Processed  | Events\n" \
               "------+--------+---------+------------+------------+----------\n";
 
         cString mstr;