summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-10-27 12:04:36 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-10-27 12:04:36 +0200
commit7e6c2d47e04682b3664daabe17c1cabab8490181 (patch)
tree84456b850da1978ac8915da69413e3d132ae0476 /menu.c
parent576ba802fe69ca7d7fa6c74dcf04698096b46c8d (diff)
downloadvdr-7e6c2d47e04682b3664daabe17c1cabab8490181.tar.gz
vdr-7e6c2d47e04682b3664daabe17c1cabab8490181.tar.bz2
Fixed a crash when pressing the '2' button while replaying a DVD
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/menu.c b/menu.c
index 138a5c74..a1c7f231 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.132 2001/10/27 10:20:04 kls Exp $
+ * $Id: menu.c 1.133 2001/10/27 12:03:19 kls Exp $
*/
#include "menu.h"
@@ -2666,15 +2666,17 @@ void cReplayControl::MarkMove(bool Forward)
void cReplayControl::EditCut(void)
{
- Hide();
- if (!cVideoCutter::Active()) {
- if (!cVideoCutter::Start(fileName))
- Interface->Error(tr("Can't start editing process!"));
+ if (fileName) {
+ Hide();
+ if (!cVideoCutter::Active()) {
+ if (!cVideoCutter::Start(fileName))
+ Interface->Error(tr("Can't start editing process!"));
+ else
+ Interface->Info(tr("Editing process started"));
+ }
else
- Interface->Info(tr("Editing process started"));
+ Interface->Error(tr("Editing process already active!"));
}
- else
- Interface->Error(tr("Editing process already active!"));
}
void cReplayControl::EditTest(void)