From cdaf99121bb31fff5e11765ab6ad5f61645134fd Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 20 May 2012 13:55:34 +0200 Subject: If a recording has no info file, the 'title' of the recording's info is now set to the recording's name --- recording.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'recording.c') diff --git a/recording.c b/recording.c index e1f7ec96..5400d630 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.53 2012/03/13 13:17:57 kls Exp $ + * $Id: recording.c 2.54 2012/05/20 13:19:15 kls Exp $ */ #include "recording.h" @@ -723,7 +723,9 @@ cRecording::cRecording(const char *FileName) } fclose(f); } - else if (errno != ENOENT) + else if (errno == ENOENT) + info->ownEvent->SetTitle(name); + else LOG_ERROR_STR(*InfoFileName); #ifdef SUMMARYFALLBACK // fall back to the old 'summary.vdr' if there was no 'info.vdr': -- cgit v1.2.3