summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-05-21 11:35:37 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2009-05-21 11:35:37 +0200
commit2c5faf0b65d8223724865109176a9c19cf1f1cba (patch)
tree04f853b74dc39fd9a1e6024314bf19f50f5d4ad8 /vdr.c
parentd007c8c0d4a9102c1d111264db0ca3d6bbb458a9 (diff)
downloadvdr-2c5faf0b65d8223724865109176a9c19cf1f1cba.tar.gz
vdr-2c5faf0b65d8223724865109176a9c19cf1f1cba.tar.bz2
Implemented setup option "Recording/Pause key handling"
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/vdr.c b/vdr.c
index cdada01c..2384895c 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 2.9 2009/05/12 21:02:58 kls Exp $
+ * $Id: vdr.c 2.10 2009/05/21 11:14:48 kls Exp $
*/
#include <getopt.h>
@@ -1062,8 +1062,12 @@ int main(int argc, char *argv[])
case kPause:
if (!cControl::Control()) {
DELETE_MENU;
- if (!cRecordControls::PauseLiveVideo())
- Skins.Message(mtError, tr("No free DVB device to record!"));
+ if (Setup.PauseKeyHandling) {
+ if (Setup.PauseKeyHandling > 1 || Interface->Confirm(tr("Pause live video?"))) {
+ if (!cRecordControls::PauseLiveVideo())
+ Skins.Message(mtError, tr("No free DVB device to record!"));
+ }
+ }
key = kNone; // nobody else needs to see this key
}
break;