summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-12-05 11:12:33 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-12-05 11:12:33 +0100
commit0f7b73016add926ed86131e553004c85e294218f (patch)
tree1798809937369e05e8fd05efedbe9779e1cfba40 /recording.c
parent41f94447d6252765bb40df1740054af55822de80 (diff)
downloadvdr-0f7b73016add926ed86131e553004c85e294218f.tar.gz
vdr-0f7b73016add926ed86131e553004c85e294218f.tar.bz2
Fixed creating the edited version directory if a relative file name is given in the call to 'vdr --edit'
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index edb86c51..00f95ca6 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 2.76 2012/12/05 10:32:00 kls Exp $
+ * $Id: recording.c 2.77 2012/12/05 11:08:47 kls Exp $
*/
#include "recording.h"
@@ -691,7 +691,8 @@ cRecording::cRecording(const char *FileName)
FileName = fileName = strdup(FileName);
if (*(fileName + strlen(fileName) - 1) == '/')
*(fileName + strlen(fileName) - 1) = 0;
- FileName += strlen(VideoDirectory) + 1;
+ if (strstr(FileName, VideoDirectory) == FileName)
+ FileName += strlen(VideoDirectory) + 1;
const char *p = strrchr(FileName, '/');
name = NULL;