summaryrefslogtreecommitdiff
path: root/dvbplayer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-06-23 11:23:34 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-06-23 11:23:34 +0200
commitcd030554e53f8161b4944d14da78756f908de6c4 (patch)
tree206e1649d3d0ff6752dd13c485a004ca1fcb5d47 /dvbplayer.c
parent0bb9a1a77b866b79b73fc71e9863e7da5fc57c56 (diff)
downloadvdr-cd030554e53f8161b4944d14da78756f908de6c4.tar.gz
vdr-cd030554e53f8161b4944d14da78756f908de6c4.tar.bz2
Switched VDR's own player to the new cPlayer/cControl structures
Diffstat (limited to 'dvbplayer.c')
-rw-r--r--dvbplayer.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/dvbplayer.c b/dvbplayer.c
index 3027e37d..9ea8eb13 100644
--- a/dvbplayer.c
+++ b/dvbplayer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbplayer.c 1.3 2002/06/22 13:35:36 kls Exp $
+ * $Id: dvbplayer.c 1.4 2002/06/23 10:52:51 kls Exp $
*/
#include "dvbplayer.h"
@@ -625,9 +625,9 @@ bool cDvbPlayer::GetReplayMode(bool &Play, bool &Forward, int &Speed)
// --- cDvbPlayerControl -----------------------------------------------------
-cDvbPlayerControl::cDvbPlayerControl(void)
+cDvbPlayerControl::cDvbPlayerControl(const char *FileName)
+:cControl(player = new cDvbPlayer(FileName))
{
- player = NULL;
}
cDvbPlayerControl::~cDvbPlayerControl()
@@ -640,16 +640,6 @@ bool cDvbPlayerControl::Active(void)
return player && player->Active();
}
-bool cDvbPlayerControl::Start(const char *FileName)
-{
- delete player;
- player = new cDvbPlayer(FileName);
- if (cDevice::PrimaryDevice()->AttachPlayer(player))
- return true;
- Stop();
- return false;
-}
-
void cDvbPlayerControl::Stop(void)
{
delete player;