Implemented GetCurrentlyTunedTransponder() on client (closes #2010)

This commit is contained in:
Frank Schmirler 2014-11-20 14:21:44 +01:00
parent 1ee2049c4d
commit 7b17f7725c
4 changed files with 9 additions and 0 deletions

View File

@ -235,3 +235,4 @@ Guy Martin
Martin1234
for suggesting a service call, returning the number of clients
for implementing GetCurrentlyTunedTransponder() on client

View File

@ -1,6 +1,7 @@
VDR Plugin 'streamdev' Revision History
---------------------------------------
- implemented GetCurrentlyTunedTransponder() on client (thanks to Martin1234)
- added service call returning the number of clients (suggested by Martin1234)
- added SVDRP commands to list and disconnect clients (thanks to Guy Martin)
- fixed recplayer issues with large TS files (>4GB)

View File

@ -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)

View File

@ -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;