summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-09-17 09:20:31 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-09-17 09:20:31 +0200
commit5147d8abbc146ac2c5cc0bfeb7577542221d605a (patch)
tree1504c465aa5fbdc62e3051975a2d7533e6d4b8b7 /recording.c
parent791fe6c40e8425535198c6b82ca1af2a0f8ee98e (diff)
downloadvdr-5147d8abbc146ac2c5cc0bfeb7577542221d605a.tar.gz
vdr-5147d8abbc146ac2c5cc0bfeb7577542221d605a.tar.bz2
Fixed converting arbitrarily formatted summary.vdr files
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/recording.c b/recording.c
index 3640a8e9..4a12b71e 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 1.113 2005/09/10 12:36:48 kls Exp $
+ * $Id: recording.c 1.114 2005/09/17 09:14:36 kls Exp $
*/
#include "recording.h"
@@ -492,11 +492,11 @@ cRecording::cRecording(const char *FileName)
line++;
}
fclose(f);
- if (line == 1) {
+ if (!data[2]) {
data[2] = data[1];
data[1] = NULL;
}
- else if (line == 2) {
+ else if (data[1] && data[2]) {
// if line 1 is too long, it can't be the short text,
// so assume the short text is missing and concatenate
// line 1 and line 2 to be the long text: