summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2012-03-29 01:39:35 +0200
committerLars Hanisch <dvb@flensrocker.de>2012-03-29 01:39:35 +0200
commit10d78a85a5e85170979b7695704203de86f17ad3 (patch)
treeddf86c5147cacbddfc64cfa8c5504512f39fc718
parentac6f59f7f8ff37ffe9a97fe6127926d4b83703e7 (diff)
downloadvdr-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--HISTORY4
-rw-r--r--dynamicdevice.c1
-rw-r--r--dynamite.c2
-rw-r--r--status.c2
-rw-r--r--status.h2
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);