diff options
author | Johns <johns98@gmx.net> | 2012-04-14 21:16:01 +0200 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-04-14 21:16:01 +0200 |
commit | 2c52955ac0536c7b31b75f98fa44768050c1d809 (patch) | |
tree | c1d677f8771672999f699adda0da0f7a22506b12 /softhddevice.cpp | |
parent | 09d858858874d714f4d66c5eff8118b40878902e (diff) | |
download | vdr-plugin-softhddevice-2c52955ac0536c7b31b75f98fa44768050c1d809.tar.gz vdr-plugin-softhddevice-2c52955ac0536c7b31b75f98fa44768050c1d809.tar.bz2 |
Adds detached start mode.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r-- | softhddevice.cpp | 16 |
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; |