summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-04-14 21:16:01 +0200
committerJohns <johns98@gmx.net>2012-04-14 21:16:01 +0200
commit2c52955ac0536c7b31b75f98fa44768050c1d809 (patch)
treec1d677f8771672999f699adda0da0f7a22506b12 /softhddevice.cpp
parent09d858858874d714f4d66c5eff8118b40878902e (diff)
downloadvdr-plugin-softhddevice-2c52955ac0536c7b31b75f98fa44768050c1d809.tar.gz
vdr-plugin-softhddevice-2c52955ac0536c7b31b75f98fa44768050c1d809.tar.bz2
Adds detached start mode.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp
index a9c19a8..a707516 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -1537,10 +1537,18 @@ bool cPluginSoftHdDevice::Start(void)
}
}
- if (!::Start()) {
- cControl::Launch(new cSoftHdControl);
- cControl::Attach();
- SuspendMode = SUSPEND_NORMAL;
+ switch (::Start()) {
+ case 1:
+ cControl::Launch(new cSoftHdControl);
+ cControl::Attach();
+ SuspendMode = SUSPEND_NORMAL;
+ break;
+ case -1:
+ SuspendMode = SUSPEND_DETACHED;
+ break;
+ case 0:
+ default:
+ break;
}
return true;