diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-09-15 11:08:35 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-09-15 11:08:35 +0200 |
commit | ec8748a2ccb402b5cde5cb98b4bafd6bb341c370 (patch) | |
tree | 8cdb146b26cfa8e107191e974b359e3684bb4a23 /device.c | |
parent | 6ef11b70be58246c9f77fe3e319a4d9bb8dbb83f (diff) | |
download | vdr-ec8748a2ccb402b5cde5cb98b4bafd6bb341c370.tar.gz vdr-ec8748a2ccb402b5cde5cb98b4bafd6bb341c370.tar.bz2 |
A previous 'Transfer Mode' is now automatically re-started after a replay stops
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 22 |
1 files changed, 11 insertions, 11 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.19 2002/09/08 14:03:43 kls Exp $ + * $Id: device.c 1.20 2002/09/15 11:05:41 kls Exp $ */ #include "device.h" @@ -47,6 +47,8 @@ cDevice::cDevice(void) player = NULL; + playerDetached = false; + for (int i = 0; i < MAXRECEIVERS; i++) receiver[i] = NULL; ca = -1; @@ -108,6 +110,13 @@ bool cDevice::HasDecoder(void) const return false; } +bool cDevice::PlayerDetached(void) +{ + bool result = playerDetached; + playerDetached = false; + return result; +} + cOsdBase *cDevice::NewOsd(int x, int y) { return NULL; @@ -438,6 +447,7 @@ void cDevice::Detach(cPlayer *Player) player->device = NULL; player = NULL; SetPlayMode(pmNone); + playerDetached = true; } } @@ -447,16 +457,6 @@ void cDevice::StopReplay(void) Detach(player); if (IsPrimaryDevice()) cControl::Shutdown(); - /*XXX+ - if (IsPrimaryDevice()) { - // let's explicitly switch the channel back in case it was in Transfer Mode: - cChannel *Channel = Channels.GetByNumber(currentChannel); - if (Channel) { - Channel->Switch(this, false); - usleep(100000); // allow driver to sync in case a new replay will start immediately - } - } - XXX*/ } } |