mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
Implemented GetCurrentlyTunedTransponder() on client (closes #2010)
This commit is contained in:
parent
1ee2049c4d
commit
7b17f7725c
@ -235,3 +235,4 @@ Guy Martin
|
||||
|
||||
Martin1234
|
||||
for suggesting a service call, returning the number of clients
|
||||
for implementing GetCurrentlyTunedTransponder() on client
|
||||
|
1
HISTORY
1
HISTORY
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user