From e55981c9e1bbe128b0c45bb9c345f703a4851bf2 Mon Sep 17 00:00:00 2001 From: schmirl Date: Mon, 23 Apr 2007 11:42:16 +0000 Subject: client_device.patch by Petri Hintukainen - Implement virtual IsTunedToTransponder() - Return true from Provides... functions Modified Files: client/device.c client/device.h --- client/device.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'client/device.c') diff --git a/client/device.c b/client/device.c index a2e4580..e2d857d 100644 --- a/client/device.c +++ b/client/device.c @@ -1,5 +1,5 @@ /* - * $Id: device.c,v 1.8 2007/01/15 12:15:12 schmirl Exp $ + * $Id: device.c,v 1.9 2007/04/23 11:42:16 schmirl Exp $ */ #include "client/device.h" @@ -59,13 +59,22 @@ cStreamdevDevice::~cStreamdevDevice() { bool cStreamdevDevice::ProvidesSource(int Source) const { Dprintf("ProvidesSource, Source=%d\n", Source); - return false; + return true; } bool cStreamdevDevice::ProvidesTransponder(const cChannel *Channel) const { Dprintf("ProvidesTransponder\n"); - return false; + return true; +} + +bool cStreamdevDevice::IsTunedToTransponder(const cChannel *Channel) +{ + bool res = false; + if (ClientSocket.DataSocket(siLive) != NULL + && TRANSPONDER(Channel, m_Channel)) + res = true; + return res; } bool cStreamdevDevice::ProvidesChannel(const cChannel *Channel, int Priority, -- cgit v1.2.3