summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-05-20 13:55:34 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-05-20 13:55:34 +0200
commitcdaf99121bb31fff5e11765ab6ad5f61645134fd (patch)
tree151c78d955702988c87811ad628801dd29edbd88 /recording.c
parent2e393c6e1f2189357b375b9d12717798ff0c6de0 (diff)
downloadvdr-cdaf99121bb31fff5e11765ab6ad5f61645134fd.tar.gz
vdr-cdaf99121bb31fff5e11765ab6ad5f61645134fd.tar.bz2
If a recording has no info file, the 'title' of the recording's info is now set to the recording's name
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c6
1 files changed, 4 insertions, 2 deletions
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':