summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-04-28 13:09:42 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-04-28 13:09:42 +0200
commit97e242d1b54e0bfac3455ddeded37136156fea36 (patch)
treee82354fa113c552f0bddb1c1a3d1c209ac8258c3 /menu.c
parent109586571a3cd6b011b6c2e348e3403a0d37c081 (diff)
downloadvdr-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.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 97dbef49..9a2b23aa 100644
--- a/menu.c
+++ b/menu.c
@@ -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())