diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-04-28 13:09:42 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-04-28 13:09:42 +0200 |
commit | 97e242d1b54e0bfac3455ddeded37136156fea36 (patch) | |
tree | e82354fa113c552f0bddb1c1a3d1c209ac8258c3 /menu.c | |
parent | 109586571a3cd6b011b6c2e348e3403a0d37c081 (diff) | |
download | vdr-97e242d1b54e0bfac3455ddeded37136156fea36.tar.gz vdr-97e242d1b54e0bfac3455ddeded37136156fea36.tar.bz2 |
The new functions cControl::GetRecording() and cControl::GetHeader() can be used to retrieve information about what the current player is playing
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 2.52 2012/04/25 09:42:54 kls Exp $ + * $Id: menu.c 2.53 2012/04/28 11:13:09 kls Exp $ */ #include "menu.h" @@ -4773,6 +4773,13 @@ cOsdObject *cReplayControl::GetInfo(void) return NULL; } +const cRecording *cReplayControl::GetRecording(void) +{ + if (const cRecording *Recording = Recordings.GetByName(LastReplayed())) + return Recording; + return NULL; +} + eOSState cReplayControl::ProcessKey(eKeys Key) { if (!Active()) |