summaryrefslogtreecommitdiff
path: root/dynamicdevice.c
diff options
context:
space:
mode:
Diffstat (limited to 'dynamicdevice.c')
-rw-r--r--dynamicdevice.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/dynamicdevice.c b/dynamicdevice.c
index f918b22..c7841f0 100644
--- a/dynamicdevice.c
+++ b/dynamicdevice.c
@@ -2,6 +2,7 @@
#include <glob.h>
#include <vdr/transfer.h>
+cPlugin *cDynamicDevice::dynamite = NULL;
int cDynamicDevice::defaultGetTSTimeout = 0;
cDvbDeviceProbe *cDynamicDevice::dvbprobe = NULL;
int cDynamicDevice::numDynamicDevices = 0;
@@ -40,6 +41,21 @@ bool cDynamicDevice::ProcessQueuedCommands(void)
DetachDevice(*dev->devpath);
break;
}
+ case ddpcService:
+ {
+ if (dynamite && (dev->devpath != NULL) && (**dev->devpath != NULL)) {
+ int len = strlen(*dev->devpath);
+ if (len > 0) {
+ char *data = strchr(const_cast<char*>(**dev->devpath), ' ');
+ if (data != NULL) {
+ data[0] = '\0';
+ data++;
+ dynamite->Service(*dev->devpath, data);
+ }
+ }
+ }
+ break;
+ }
}
}
cDynamicDeviceProbe::commandQueue.Clear();