diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-02-22 13:33:20 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-02-22 13:33:20 +0100 |
commit | 8e616636526b9d7f7530d96dcb69efa1d9e011d2 (patch) | |
tree | 1c57f6a9592ba1f3a98f262655c5b3701ca1b523 /menu.c | |
parent | 45eac6d94694aa9081bdd0e06794942c49818ff1 (diff) | |
download | vdr-8e616636526b9d7f7530d96dcb69efa1d9e011d2.tar.gz vdr-8e616636526b9d7f7530d96dcb69efa1d9e011d2.tar.bz2 |
Implemented handling the VPS timestamps
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.289 2004/02/21 15:40:35 kls Exp $ + * $Id: menu.c 1.290 2004/02/22 13:32:07 kls Exp $ */ #include "menu.h" @@ -1168,6 +1168,13 @@ cMenuEvent::cMenuEvent(const cEvent *Event, bool CanSwitch) Add(item = new cMenuTextItem(Subtitle, 1, Line, Setup.OSDwidth - 2, -1, clrYellow)); Line += item->Height() + 1; } + if (Event->Vps() && Event->Vps() != Event->StartTime()) { + char *buffer; + asprintf(&buffer, "VPS: %s", Event->GetVpsString()); + Add(item = new cMenuTextItem(buffer, 1, Line, Setup.OSDwidth - 2, -1, clrYellow)); + free(buffer); + Line += item->Height() + 1; + } if (!isempty(ExtendedDescription)) Add(new cMenuTextItem(ExtendedDescription, 1, Line, Setup.OSDwidth - 2, Height() - Line - 2, clrCyan), true); SetHelp(tr("Record"), NULL, NULL, CanSwitch ? tr("Switch") : NULL); |