summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/device.c6
-rw-r--r--client/device.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/client/device.c b/client/device.c
index de0865f..3bc0dbd 100644
--- a/client/device.c
+++ b/client/device.c
@@ -88,6 +88,12 @@ bool cStreamdevDevice::IsTunedToTransponder(const cChannel *Channel)
Channel->Transponder() == m_Channel->Transponder();
}
+const cChannel *cStreamdevDevice::GetCurrentlyTunedTransponder(void) const {
+ if (m_ClientSocket->DataSocket(siLive) != NULL)
+ return m_Channel;
+ return NULL;
+}
+
bool cStreamdevDevice::ProvidesChannel(const cChannel *Channel, int Priority,
bool *NeedsDetachReceivers) const {
if (m_Disabled || Channel == m_DenyChannel)
diff --git a/client/device.h b/client/device.h
index 1edf956..c4e3a43 100644
--- a/client/device.h
+++ b/client/device.h
@@ -66,6 +66,7 @@ public:
#else
virtual bool IsTunedToTransponder(const cChannel *Channel);
#endif
+ virtual const cChannel *GetCurrentlyTunedTransponder(void) const;
virtual cString DeviceName(void) const;
virtual cString DeviceType(void) const;
virtual int SignalStrength(void) const;