From 10d78a85a5e85170979b7695704203de86f17ad3 Mon Sep 17 00:00:00 2001 From: Lars Hanisch Date: Thu, 29 Mar 2012 01:39:35 +0200 Subject: re-new the device bonding if a device is attached --- HISTORY | 4 ++++ dynamicdevice.c | 1 + dynamite.c | 2 +- status.c | 2 +- status.h | 2 +- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index 5a0ce07..0ed6238 100644 --- a/HISTORY +++ b/HISTORY @@ -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); diff --git a/dynamite.c b/dynamite.c index 9117d00..f87ac60 100644 --- a/dynamite.c +++ b/dynamite.c @@ -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; diff --git a/status.c b/status.c index 8359cb8..d590d59 100644 --- a/status.c +++ b/status.c @@ -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; diff --git a/status.h b/status.h index adf7212..6abf6a2 100644 --- a/status.h +++ b/status.h @@ -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); -- cgit v1.2.3