diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-22 09:13:26 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-22 09:13:26 +0200 |
commit | a0e65853042dacd888921a435d7b3d549e7d894e (patch) | |
tree | 7d1333e9fdd17189c872c50607c05fd65f1a8a20 /recording.c | |
parent | a8b3516607d2e99381add560089bce3adee9f462 (diff) | |
download | vdr-a0e65853042dacd888921a435d7b3d549e7d894e.tar.gz vdr-a0e65853042dacd888921a435d7b3d549e7d894e.tar.bz2 |
Fixed setting timer's summary for recording
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/recording.c b/recording.c index 199d6827..a946fca4 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.100 2005/05/16 15:17:22 kls Exp $ + * $Id: recording.c 1.101 2005/05/22 09:13:26 kls Exp $ */ #include "recording.h" @@ -230,6 +230,14 @@ cRecordingInfo::~cRecordingInfo() delete ownEvent; } +void cRecordingInfo::SetTitleAndDescription(const char *Title, const char *Description) +{ + if (isempty(event->Title()) && !isempty(Title)) + ((cEvent *)event)->SetTitle(Title); + if (!isempty(Description)) + ((cEvent *)event)->SetDescription(Description); +} + bool cRecordingInfo::Read(FILE *f) { if (ownEvent) { @@ -414,7 +422,7 @@ cRecording::cRecording(cTimer *Timer, const cEvent *Event) // timer into the recording info, but it saves us from having to actually // copy the entire event data: if (!isempty(Timer->Summary())) - ((cEvent *)Event)->SetDescription(Timer->Summary()); + info->SetTitleAndDescription(Timer->File(), Timer->Summary()); } cRecording::cRecording(const char *FileName) |