mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Totally rearranged device/player/recorder structures
This commit is contained in:
@@ -864,15 +864,15 @@ If a plugin wants to get informed on various events in VDR, it can derive a clas
|
||||
|
||||
class cMyStatusMonitor : public cStatusMonitor {
|
||||
protected:
|
||||
virtual void ChannelSwitch(const cDvbApi *DvbApi, int ChannelNumber);
|
||||
virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber);
|
||||
};
|
||||
|
||||
void cMyStatusMonitor::ChannelSwitch(const cDvbApi *DvbApi, int ChannelNumber)
|
||||
void cMyStatusMonitor::ChannelSwitch(const cDevice *Device, int ChannelNumber)
|
||||
{
|
||||
if (ChannelNumber)
|
||||
dsyslog("channel switched to %d on DVB %d", ChannelNumber, DvbApi->CardIndex());
|
||||
dsyslog("channel switched to %d on DVB %d", ChannelNumber, Device->CardIndex());
|
||||
else
|
||||
dsyslog("about to switch channel on DVB %d", DvbApi->CardIndex());
|
||||
dsyslog("about to switch channel on DVB %d", Device->CardIndex());
|
||||
}
|
||||
</pre></td></tr></table><p>
|
||||
|
||||
|
Reference in New Issue
Block a user