diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-08-15 11:16:34 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-08-15 11:16:34 +0200 |
commit | c0ef9a35e2994aad863dfb2195211bb2d9dec766 (patch) | |
tree | dbd5b348d2ff8c0f5c3cef4f0521f090a47fef9b /device.c | |
parent | d4ab35d1d92e14e9a4e7490058546642da728e02 (diff) | |
download | vdr-c0ef9a35e2994aad863dfb2195211bb2d9dec766.tar.gz vdr-c0ef9a35e2994aad863dfb2195211bb2d9dec766.tar.bz2 |
Implemented several replay modes to allow players that play only audio
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 1.9 2002/08/15 09:59:57 kls Exp $ + * $Id: device.c 1.10 2002/08/15 10:30:08 kls Exp $ */ #include "device.h" @@ -316,9 +316,9 @@ void cDevice::SetVolume(int Volume, bool Absolute) mute = false; } -int cDevice::SetPlayMode(bool On) +bool cDevice::SetPlayMode(ePlayMode PlayMode) { - return -1; + return false; } void cDevice::TrickSpeed(int Speed) @@ -361,7 +361,7 @@ bool cDevice::AttachPlayer(cPlayer *Player) Detach(player); player = Player; player->device = this; - SetPlayMode(true);//XXX + SetPlayMode(player->playMode); player->Activate(true); return true; } @@ -374,7 +374,7 @@ void cDevice::Detach(cPlayer *Player) player->Activate(false); player->device = NULL; player = NULL; - SetPlayMode(false); + SetPlayMode(pmNone); } } |