aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/vdr-plugin-ttxtsubs/files/patch-vdr-1.7.29
blob: 0115547525921ee79fd2a5a1a7d326117254cf62 (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
--- ttxtsubs.c.orig
+++ ttxtsubs.c
@@ -136,7 +136,7 @@ public:
 
   // -- cStatus
  protected:
-  virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber);
+  virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView);
   virtual void Replaying(const cControl *Control, const char *Name, const char *FileName, bool On);
   //  virtual void OsdClear(void) { ShowTtxt(); }
   //  virtual void OsdTitle(const char *Title) { HideTtxt(); }
@@ -333,10 +333,11 @@ bool cPluginTtxtsubs::SetupParse(const c
   return true;
 }
 
-void cPluginTtxtsubs::ChannelSwitch(const cDevice *Device, int ChannelNumber)
+void cPluginTtxtsubs::ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView)
 {
   //dprint("cPluginTtxtsubs::ChannelSwitch(devicenr: %d, channelnr: %d) - mDispl: %x\n",  Device->DeviceNumber(), ChannelNumber, mDispl); // XXX
-  if (Device->IsPrimaryDevice() && !Device->Replaying() && ChannelNumber)
+  if (LiveView /*Device->IsPrimaryDevice()*/ &&
+      !Device->Replaying() && ChannelNumber)
   {
     StopTtxt();
     DELETENULL(mLiveReceiver);