diff options
author | Lars Hanisch <dvb@flensrocker.de> | 2012-03-29 01:39:35 +0200 |
---|---|---|
committer | Lars Hanisch <dvb@flensrocker.de> | 2012-03-29 01:39:35 +0200 |
commit | 10d78a85a5e85170979b7695704203de86f17ad3 (patch) | |
tree | ddf86c5147cacbddfc64cfa8c5504512f39fc718 | |
parent | ac6f59f7f8ff37ffe9a97fe6127926d4b83703e7 (diff) | |
download | vdr-plugin-dynamite-10d78a85a5e85170979b7695704203de86f17ad3.tar.gz vdr-plugin-dynamite-10d78a85a5e85170979b7695704203de86f17ad3.tar.bz2 |
re-new the device bonding if a device is attachedv0.0.9e
-rw-r--r-- | HISTORY | 4 | ||||
-rw-r--r-- | dynamicdevice.c | 1 | ||||
-rw-r--r-- | dynamite.c | 2 | ||||
-rw-r--r-- | status.c | 2 | ||||
-rw-r--r-- | status.h | 2 |
5 files changed, 8 insertions, 3 deletions
@@ -256,3 +256,7 @@ VDR Plugin 'dynamite' Revision History 2012-03-28: Version 0.0.9d - adjust to vdr 1.7.27 + +2012-03-29: Version 0.0.9e + +- re-new the device bonding if a device is attached diff --git a/dynamicdevice.c b/dynamicdevice.c index 0453d9e..28e6236 100644 --- a/dynamicdevice.c +++ b/dynamicdevice.c @@ -310,6 +310,7 @@ attach: isyslog("dynamite: attached device %s to dynamic device slot %d", DevPath, freeIndex + 1); dynamicdevice[freeIndex]->ReadUdevProperties(); cPluginManager::CallAllServices("dynamite-event-DeviceAttached-v0.1", (void*)DevPath); + cDvbDevice::BondDevices(Setup.DeviceBondings); // "re-bond" if (enableOsdMessages) { cString osdMsg = cString::sprintf(tr("attached %s"), DevPath); Skins.QueueMessage(mtInfo, *osdMsg); @@ -11,7 +11,7 @@ #include "monitor.h" #include "status.h" -static const char *VERSION = "0.0.9d"; +static const char *VERSION = "0.0.9e"; static const char *DESCRIPTION = tr("attach/detach devices on the fly"); static const char *MAINMENUENTRY = NULL; @@ -13,7 +13,7 @@ cDynamiteStatus::cDynamiteStatus(int StartupChannel) isyslog("dynamite: startup channel is %d", startupChannel); } -void cDynamiteStatus::ChannelSwitch(const cDevice *Device, int ChannelNumber) +void cDynamiteStatus::ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView) { if ((ChannelNumber == 0) || startupChannelSet || (startupChannel < 0) || (switchCount > 1)) return; @@ -14,7 +14,7 @@ private: cDynamiteStatus(int StartupChannel); - virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber); + virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView); public: static void Init(void); |