summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUdo Richter <udo_richter@gmx.de>2012-03-11 14:19:06 +0200
committerVille Skyttä <ville.skytta@iki.fi>2012-03-11 14:19:06 +0200
commite9367b3f702bf04bea0585e2b27962d63aebda1d (patch)
tree8e3ea1354ac8f9ad3542c4067c74f9bafebaa0c1
parent03b8cab390b814213b5c00a7e2b724733661ec1e (diff)
downloadvdr-plugin-osdteletext-e9367b3f702bf04bea0585e2b27962d63aebda1d.tar.gz
vdr-plugin-osdteletext-e9367b3f702bf04bea0585e2b27962d63aebda1d.tar.bz2
Avoid FF card transfer mode on channel switch with VDR >= 1.7.25 (Closes: #9).
-rw-r--r--txtrecv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/txtrecv.c b/txtrecv.c
index 15bd88f..2321697 100644
--- a/txtrecv.c
+++ b/txtrecv.c
@@ -485,6 +485,13 @@ cTxtStatus::~cTxtStatus()
void cTxtStatus::ChannelSwitch(const cDevice *Device, int ChannelNumber)
{
+#if VDRVERSNUM >= 10725
+ // Disconnect receiver if channel is 0, will reconnect to new
+ // receiver after channel change.
+ if (ChannelNumber == 0 && Device->IsPrimaryDevice())
+ DELETENULL(receiver);
+#endif
+
// ignore if channel is 0
if (ChannelNumber == 0) return;