1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Now writing the title of a recording into the 'summary.vdr' file

This commit is contained in:
Klaus Schmidinger 2002-03-23 11:37:28 +01:00
parent 508d8a92bd
commit 460e907cb9
2 changed files with 3 additions and 2 deletions

View File

@ -1127,3 +1127,4 @@ Video Disk Recorder Revision History
Arnold Niessen, Paulo Lopes, Jean-Claude Repetto).
- Improved file I/O in case of EINTR, which may occur e.g. with heavy system
load (thanks to Werner Fink).
- Now writing the title of a recording into the 'summary.vdr' file.

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: recording.c 1.57 2002/03/16 12:17:44 kls Exp $
* $Id: recording.c 1.58 2002/03/23 11:32:33 kls Exp $
*/
#include "recording.h"
@ -324,7 +324,7 @@ cRecording::cRecording(cTimer *Timer, const char *Title, const char *Subtitle, c
if (isempty(Summary))
Summary = "";
if (*Subtitle || *Summary)
asprintf(&summary, "%s%s%s", Subtitle, (*Subtitle && *Summary) ? "\n\n" : "", Summary);
asprintf(&summary, "%s\n\n%s%s%s", Title, Subtitle, (*Subtitle && *Summary) ? "\n\n" : "", Summary);
}
}