summaryrefslogtreecommitdiff
path: root/player.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-06-23 12:59:58 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-06-23 12:59:58 +0200
commit26981fd7b148ee943d8032b46f83a7409e02e3be (patch)
tree08393b0336d2a39d891859b4663d0f9996470b16 /player.c
parentbd26fdf362d7daf420090b4f811bdb1fad45ea24 (diff)
downloadvdr-26981fd7b148ee943d8032b46f83a7409e02e3be.tar.gz
vdr-26981fd7b148ee943d8032b46f83a7409e02e3be.tar.bz2
Switched handling 'Transfer Mode' to the new cPlayer/cControl structures
Diffstat (limited to 'player.c')
-rw-r--r--player.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/player.c b/player.c
index 7b66fae0..ca182dfa 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.2 2002/06/23 11:23:17 kls Exp $
+ * $Id: player.c 1.3 2002/06/23 12:56:25 kls Exp $
*/
#include "player.h"
@@ -49,9 +49,10 @@ void cPlayer::Detach(void)
cControl *cControl::control = NULL;
-cControl::cControl(cPlayer *Player)
+cControl::cControl(cPlayer *Player, bool Hidden)
{
attached = false;
+ hidden = Hidden;
player = Player;
}
@@ -61,6 +62,11 @@ cControl::~cControl()
control = NULL;
}
+cControl *cControl::Control(void)
+{
+ return (control && !control->hidden) ? control : NULL;
+}
+
void cControl::Launch(cControl *Control)
{
delete control;