summaryrefslogtreecommitdiff
path: root/txtrecv.c
diff options
context:
space:
mode:
Diffstat (limited to 'txtrecv.c')
-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;