summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'device.c')
-rw-r--r--device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/device.c b/device.c
index 646bb1c..998ef48 100644
--- a/device.c
+++ b/device.c
@@ -1064,6 +1064,11 @@ bool cPvrDevice::OpenDvr(void) {
log(pvrERROR, "OpenDvr: executing %s failed", *cmd);
}
log(pvrDEBUG1, "OpenDvr: returned from %s", *cmd);
+ if (PvrSetup.ExternChannelSwitchSleep > 0) {
+ log(pvrDEBUG2, "OpenDvr: sleeping for %d seconds...", PvrSetup.ExternChannelSwitchSleep);
+ usleep(PvrSetup.ExternChannelSwitchSleep * 1000000);
+ log(pvrDEBUG2, "OpenDvr: waking up");
+ }
}
if (! SetInput(newInput)) return false;