summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-06-13 13:03:26 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-06-13 13:03:26 +0200
commit0192c6023f2c07ce68766b907021450a548156c9 (patch)
treeb7198311093809bc4b636c870964ba4eac09e5bd /menu.c
parent2a18fb96871fea40a190c4f6f7f6273bc6767f65 (diff)
downloadvdr-0192c6023f2c07ce68766b907021450a548156c9.tar.gz
vdr-0192c6023f2c07ce68766b907021450a548156c9.tar.bz2
Fixed a crash with instant recordings
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index c3ea64e0..18274d34 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 2.56 2012/06/13 11:24:40 kls Exp $
+ * $Id: menu.c 2.57 2012/06/13 13:03:26 kls Exp $
*/
#include "menu.h"
@@ -4180,7 +4180,7 @@ cRecordControl::cRecordControl(cDevice *Device, cTimer *Timer, bool Pause)
if (!Timer && !cReplayControl::LastReplayed()) // an instant recording, maybe from cRecordControls::PauseLiveVideo()
cReplayControl::SetRecording(fileName);
Recordings.AddByName(fileName);
- if (!Timer->IsSingleEvent()) {
+ if (Timer && !Timer->IsSingleEvent()) {
char *Directory = strdup(fileName);
// going up two directory levels to get the series folder
if (char *p = strrchr(Directory, '/')) {