summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2011-02-17 01:44:32 +0100
committerLars Hanisch <dvb@flensrocker.de>2011-02-17 01:44:32 +0100
commitc3cc3a490df4937dc70cc2442c6724c4b6d956ec (patch)
treec2a58ac35d051230888a9d60ad405c44764994dc /monitor.c
parenta5a5be51f1d261a43f142f8be86229f2c46b1482 (diff)
downloadvdr-plugin-dynamite-c3cc3a490df4937dc70cc2442c6724c4b6d956ec.tar.gz
vdr-plugin-dynamite-c3cc3a490df4937dc70cc2442c6724c4b6d956ec.tar.bz2
dynamite can call an external program if the GetTSTimeout of a device triggers
In setup.conf set dynamite.GetTSTimeoutHandler to a program you want to execute. If the udev-property dynamite_timeout_handler_arg is set it will be passed as the argument to it otherwise the devpath with wich the device was attached to dynamite.
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 601a3bb..f911698 100644
--- a/monitor.c
+++ b/monitor.c
@@ -219,6 +219,9 @@ void cUdevDvbFilter::Process(cUdevDevice &Device)
const char *timeout = Device.GetPropertyValue("dynamite_timeout");
if (timeout)
cDynamicDeviceProbe::QueueDynamicDeviceCommand(ddpcService, *cString::sprintf("dynamite-SetGetTSTimeout-v0.1 %s %s", devname, timeout));
+ const char *timeoutHandlerArg = Device.GetPropertyValue("dynamite_timeout_handler_arg");
+ if (timeoutHandlerArg)
+ cDynamicDeviceProbe::QueueDynamicDeviceCommand(ddpcService, *cString::sprintf("dynamite-SetGetTSTimeoutHandlerArg-v0.1 %s %s", devname, timeoutHandlerArg));
}
}