diff options
author | Lars Hanisch <dvb@flensrocker.de> | 2011-02-17 01:44:32 +0100 |
---|---|---|
committer | Lars Hanisch <dvb@flensrocker.de> | 2011-02-17 01:44:32 +0100 |
commit | c3cc3a490df4937dc70cc2442c6724c4b6d956ec (patch) | |
tree | c2a58ac35d051230888a9d60ad405c44764994dc /monitor.c | |
parent | a5a5be51f1d261a43f142f8be86229f2c46b1482 (diff) | |
download | vdr-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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)); } } |