diff options
| author | Lars Hanisch <dvb@flensrocker.de> | 2011-12-08 00:08:44 +0100 |
|---|---|---|
| committer | Lars Hanisch <dvb@flensrocker.de> | 2011-12-08 00:08:44 +0100 |
| commit | ccd80a25bfb9732d5f7f3d0509766b7e79e6a9e2 (patch) | |
| tree | 8f383dcb8b14388ea1ff5b96431438197f4a4e1e | |
| parent | 47673c0c74b08c6501d0b2d645eea6b0594efce9 (diff) | |
| parent | 6766fad3d51a176dad50698a1b94c460ffd28578 (diff) | |
| download | vdr-plugin-dynamite-ccd80a25bfb9732d5f7f3d0509766b7e79e6a9e2.tar.gz vdr-plugin-dynamite-ccd80a25bfb9732d5f7f3d0509766b7e79e6a9e2.tar.bz2 | |
Merge branch 'master' into yavdr_master
| -rw-r--r-- | HISTORY | 4 | ||||
| -rw-r--r-- | dynamicdevice.c | 2 | ||||
| -rw-r--r-- | dynamite.c | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -204,3 +204,7 @@ VDR Plugin 'dynamite' Revision History 2011-12-04: Version 0.0.8d - allow disable of auto-idle per device via Service/SVDRP/udev + +2011-12-08: Version 0.0.8e + +- fix a possible double attach of devices if they have a cardindex set with udev diff --git a/dynamicdevice.c b/dynamicdevice.c index 7327f55..1758cf7 100644 --- a/dynamicdevice.c +++ b/dynamicdevice.c @@ -26,7 +26,7 @@ int cDynamicDevice::IndexOf(const char *DevPath, int &NextFreeIndex, int WishInd isyslog("dynamite: device at slot %d has cardindex %d", i + 1, dynamicdevice[i]->CardIndex()); if ((NextFreeIndex < 0) || ((WishIndex >= 0) && (dynamicdevice[i]->CardIndex() == WishIndex))) { NextFreeIndex = i; - if (dynamicdevice[i]->CardIndex() == WishIndex) + if ((dynamicdevice[i]->CardIndex() == WishIndex) && (index >= 0)) break; } } @@ -10,7 +10,7 @@ #include "menu.h" #include "monitor.h" -static const char *VERSION = "0.0.8d"; +static const char *VERSION = "0.0.8e"; static const char *DESCRIPTION = tr("attach/detach devices on the fly"); static const char *MAINMENUENTRY = NULL; |
