summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmirl <schmirl>2007-01-15 12:15:12 +0000
committerschmirl <schmirl>2007-01-15 12:15:12 +0000
commite3a44184539067ff9be18a7d1458c6c349a6245a (patch)
tree8bf87102a6426e94062753da21570040005cdeb9
parent335660b62c8a11f377c10f35c704c89e601fcd2b (diff)
downloadvdr-plugin-streamdev-e3a44184539067ff9be18a7d1458c6c349a6245a.tar.gz
vdr-plugin-streamdev-e3a44184539067ff9be18a7d1458c6c349a6245a.tar.bz2
Compatibility for vdr < 1.3.38 (#169)
-rw-r--r--client/device.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/client/device.c b/client/device.c
index c8506c3..a2e4580 100644
--- a/client/device.c
+++ b/client/device.c
@@ -1,5 +1,5 @@
/*
- * $Id: device.c,v 1.7 2006/09/14 10:43:10 schmirl Exp $
+ * $Id: device.c,v 1.8 2007/01/15 12:15:12 schmirl Exp $
*/
#include "client/device.h"
@@ -101,7 +101,19 @@ bool cStreamdevDevice::SetChannelDevice(const cChannel *Channel,
&& TRANSPONDER(Channel, m_Channel))
return true;
+#if VDRVERSNUM < 10338
+ DetachAll(pidHandles[ptAudio].pid);
+ DetachAll(pidHandles[ptVideo].pid);
+ DetachAll(pidHandles[ptPcr].pid);
+ DetachAll(pidHandles[ptTeletext].pid);
+ DelPid(pidHandles[ptAudio].pid);
+ DelPid(pidHandles[ptVideo].pid);
+ DelPid(pidHandles[ptPcr].pid, ptPcr);
+ DelPid(pidHandles[ptTeletext].pid);
+ DelPid(pidHandles[ptDolby].pid);
+#else
DetachAllReceivers();
+#endif
m_Channel = Channel;
bool r = ClientSocket.SetChannelDevice(m_Channel);
Dprintf("setchanneldevice r=%d\n", r);