summaryrefslogtreecommitdiff
path: root/dynamite.c
diff options
context:
space:
mode:
Diffstat (limited to 'dynamite.c')
-rw-r--r--dynamite.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/dynamite.c b/dynamite.c
index 05f40bc..7ffb5f8 100644
--- a/dynamite.c
+++ b/dynamite.c
@@ -189,10 +189,18 @@ bool cPluginDynamite::ProcessArgs(int argc, char *argv[])
bool cPluginDynamite::Initialize(void)
{
+ static const char *badPlugins[] = {"streamdev-client", NULL};
+ int freeSlotsForKnownBadPlugins = 0;
+ for (int i = 0; badPlugins[i]; i++) {
+ if (cPluginManager::GetPlugin(badPlugins[i]) != NULL) {
+ isyslog("dynamite: %s detected, leaving one additional slot free", badPlugins[i]);
+ freeSlotsForKnownBadPlugins++;
+ }
+ }
// create dynamic devices
- if (cDevice::NumDevices() < (MAXDEVICES - freeDeviceSlots)) {
+ if (cDevice::NumDevices() < (MAXDEVICES - freeDeviceSlots - freeSlotsForKnownBadPlugins)) {
isyslog("dynamite: creating dynamic device slots as much as possible");
- while (cDevice::NumDevices() < (MAXDEVICES - freeDeviceSlots))
+ while (cDevice::NumDevices() < (MAXDEVICES - freeDeviceSlots - freeSlotsForKnownBadPlugins))
new cDynamicDevice;
}
// look for all dvb devices