mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 17:16:51 +00:00
Implemented GetCurrentlyTunedTransponder() on client (closes #2010)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user