summaryrefslogtreecommitdiff
path: root/player.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-04-28 10:56:05 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-04-28 10:56:05 +0200
commit109586571a3cd6b011b6c2e348e3403a0d37c081 (patch)
tree0d0ff6b6b1af2577d0c7aae548b7ac7704e1307b /player.c
parent299f1f312c3a7ffdda9ff798fab6b73fd53842ec (diff)
downloadvdr-109586571a3cd6b011b6c2e348e3403a0d37c081.tar.gz
vdr-109586571a3cd6b011b6c2e348e3403a0d37c081.tar.bz2
cControl::Control() now has an additional boolean parameter, which can be set to true to get the current player control even if it is hidden
Diffstat (limited to 'player.c')
-rw-r--r--player.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/player.c b/player.c
index c96fc1ab..fa4235c8 100644
--- a/player.c
+++ b/player.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: player.c 1.12 2007/07/20 15:25:24 kls Exp $
+ * $Id: player.c 2.1 2012/04/28 10:56:00 kls Exp $
*/
#include "player.h"
@@ -60,10 +60,10 @@ cOsdObject *cControl::GetInfo(void)
return NULL;
}
-cControl *cControl::Control(void)
+cControl *cControl::Control(bool Hidden)
{
cMutexLock MutexLock(&mutex);
- return (control && !control->hidden) ? control : NULL;
+ return (control && (!control->hidden || Hidden)) ? control : NULL;
}
void cControl::Launch(cControl *Control)