diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2000-10-03 18:00:00 +0200 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2000-10-03 18:00:00 +0200 |
commit | ef8fe3f04c30caedeb17b11ac275581539f039c7 (patch) | |
tree | 40a00f075c4fc94b95fd070077e89a1916923789 /recording.c | |
parent | 7e4b4d290570aee1d24241b0e0ac10e7c8148a36 (diff) | |
download | vdr-patch-lnbsharing-ef8fe3f04c30caedeb17b11ac275581539f039c7.tar.gz vdr-patch-lnbsharing-ef8fe3f04c30caedeb17b11ac275581539f039c7.tar.bz2 |
Version 0.65vdr-0.65
- Modified LIRC interface to better handle repeat function.
- Faster OSD by first writing into a bitmap and then sending the entire bitmap
to the DVB driver at once (requires the patch 'dvb.c.071.diff' to be applied
against the version 0.71 DVB driver file 'dvb.c').
- When switching channels the channel is now immediately displayed, and the
current/next information is shown as soon as it becomes available.
- No longer displaying the year in the 'Recordings' menu to saves space for the
title.
- The 'Recordings' menu now displays a '*' to indicate new recordings.
- Added the description of the timers.conf file to the FORMATS file (thanks to
Bastian Guse).
- Displaying as much as possible of the current/next info (dropping characters
that would display only partially).
- In normal viewing mode the '0' key now toggles between the current and the
previous channel.
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/recording.c b/recording.c index 9f3b388..60ea4a1 100644 --- a/recording.c +++ b/recording.c @@ -1,10 +1,10 @@ /* - * recording.h: Recording file handling + * recording.c: Recording file handling * * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.15 2000/07/29 14:08:17 kls Exp $ + * $Id: recording.c 1.18 2000/10/03 12:39:28 kls Exp $ */ #define _GNU_SOURCE @@ -15,6 +15,7 @@ #include <string.h> #include <sys/stat.h> #include <unistd.h> +#include "dvbapi.h" #include "interface.h" #include "tools.h" #include "videodir.h" @@ -170,18 +171,24 @@ const char *cRecording::FileName(void) return fileName; } -const char *cRecording::Title(char Delimiter) +const char *cRecording::Title(char Delimiter, bool NewIndicator) { + char New = ' '; + if (NewIndicator) { + cResumeFile ResumeFile(FileName()); + if (ResumeFile.Read() <= 0) + New = '*'; + } delete titleBuffer; titleBuffer = NULL; struct tm *t = localtime(&start); - asprintf(&titleBuffer, "%02d.%02d.%02d%c%02d:%02d%c%s", + asprintf(&titleBuffer, "%02d.%02d%c%02d:%02d%c%c%s", t->tm_mday, t->tm_mon + 1, - t->tm_year % 100, Delimiter, t->tm_hour, t->tm_min, + New, Delimiter, name); return titleBuffer; |