summaryrefslogtreecommitdiff
path: root/PLUGINS/src/skincurses
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-03-03 15:38:17 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-03-03 15:38:17 +0100
commit01c44e8b2cdee22efd2d5f5dd7813f9a8192b8f2 (patch)
tree48e9f9f4a873c5a6abdfbc7d48fbcd36b0f81737 /PLUGINS/src/skincurses
parent19839832147a3836fbe3d9480b6b310e0deb4a22 (diff)
downloadvdr-01c44e8b2cdee22efd2d5f5dd7813f9a8192b8f2.tar.gz
vdr-01c44e8b2cdee22efd2d5f5dd7813f9a8192b8f2.tar.bz2
The "Recording info" page of the skins that come with VDR now displays the name of the channel (if available) from which this recording was taken
Diffstat (limited to 'PLUGINS/src/skincurses')
-rw-r--r--PLUGINS/src/skincurses/HISTORY5
-rw-r--r--PLUGINS/src/skincurses/skincurses.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/PLUGINS/src/skincurses/HISTORY b/PLUGINS/src/skincurses/HISTORY
index 74a36dbe..53e70e81 100644
--- a/PLUGINS/src/skincurses/HISTORY
+++ b/PLUGINS/src/skincurses/HISTORY
@@ -109,3 +109,8 @@ VDR Plugin 'skincurses' Revision History
2013-01-12: Version 0.1.14
- Adapted Makefile to changes introduced in recent VDR versions.
+
+2013-03-03: Version 0.1.15
+
+- The "Recording info" page now displays the name of the channel (if available)
+ from which this recording was taken.
diff --git a/PLUGINS/src/skincurses/skincurses.c b/PLUGINS/src/skincurses/skincurses.c
index 2a9f042d..da9d17ae 100644
--- a/PLUGINS/src/skincurses/skincurses.c
+++ b/PLUGINS/src/skincurses/skincurses.c
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: skincurses.c 2.11 2013/01/12 14:13:12 kls Exp $
+ * $Id: skincurses.c 2.12 2013/03/03 15:33:59 kls Exp $
*/
#include <ncurses.h>
@@ -12,7 +12,7 @@
#include <vdr/skins.h>
#include <vdr/videodir.h>
-static const char *VERSION = "0.1.14";
+static const char *VERSION = "0.1.15";
static const char *DESCRIPTION = trNOOP("A text only skin");
static const char *MAINMENUENTRY = NULL;
@@ -447,8 +447,7 @@ void cSkinCursesDisplayMenu::SetRecording(const cRecording *Recording)
const cRecordingInfo *Info = Recording->Info();
int y = 2;
cTextScroller ts;
- char t[32];
- snprintf(t, sizeof(t), "%s %s", *DateString(Recording->Start()), *TimeString(Recording->Start()));
+ cString t = cString::sprintf("%s %s %s", *DateString(Recording->Start()), *TimeString(Recording->Start()), Info->ChannelName() ? Info->ChannelName() : "");
ts.Set(osd, 0, y, ScOsdWidth, ScOsdHeight - y - 2, t, &Font, clrYellow, clrBackground);
y += ts.Height();
if (Info->GetEvent()->ParentalRating()) {