summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorschmirl <schmirl>2007-12-12 12:22:45 +0000
committerschmirl <schmirl>2007-12-12 12:22:45 +0000
commit46e007f456809ce1baba5d6b6f43a3fa3e56ef65 (patch)
tree96329d2a3f9c1963d44b9b355971226dfe9c9ef5 /client
parent713c0564b749da455290ccfa1dddc6676c104724 (diff)
downloadvdr-plugin-streamdev-46e007f456809ce1baba5d6b6f43a3fa3e56ef65.tar.gz
vdr-plugin-streamdev-46e007f456809ce1baba5d6b6f43a3fa3e56ef65.tar.bz2
Workaround which fixes tuning problems for VDR 1.5.x clients. These
sometimes send ABRT after TUNE. Clean solution wanted! Thanks to alexw (#255)
Diffstat (limited to 'client')
-rw-r--r--client/device.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/client/device.c b/client/device.c
index 7069c62..da93d12 100644
--- a/client/device.c
+++ b/client/device.c
@@ -1,5 +1,5 @@
/*
- * $Id: device.c,v 1.14 2007/07/20 06:46:47 schmirl Exp $
+ * $Id: device.c,v 1.15 2007/12/12 12:22:45 schmirl Exp $
*/
#include "client/device.h"
@@ -212,8 +212,16 @@ void cStreamdevDevice::CloseDvrInt(void) {
}
Dprintf("cStreamdevDevice::CloseDvrInt(): Closing DVR connection\n");
+#if VDRVERSNUM < 10500
DELETENULL(m_TSBuffer);
ClientSocket.CloseDvr();
+#else
+ // Hack for VDR 1.5.x clients (sometimes sending ABRT after TUNE)
+ // TODO: Find a clean solution to fix this
+ ClientSocket.SetChannelDevice(m_Channel);
+ ClientSocket.CloseDvr();
+ DELETENULL(m_TSBuffer);
+#endif
}
void cStreamdevDevice::CloseDvr(void) {