diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-04 14:58:24 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-04 14:58:24 +0100 |
commit | d5c739790b51c1503bad54b2edf384f359ed2a3b (patch) | |
tree | 87b9c108757e97365264bb40ebb0f96bb926f687 /device.c | |
parent | 8831fe304fd7992c4017b434d3d6e70478b34872 (diff) | |
download | vdr-d5c739790b51c1503bad54b2edf384f359ed2a3b.tar.gz vdr-d5c739790b51c1503bad54b2edf384f359ed2a3b.tar.bz2 |
Implemented cDevice::Transferring()
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 9 |
1 files changed, 7 insertions, 2 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.122 2006/02/04 10:21:51 kls Exp $ + * $Id: device.c 1.123 2006/02/04 14:58:24 kls Exp $ */ #include "device.h" @@ -924,12 +924,17 @@ bool cDevice::Replaying(void) const return player != NULL; } +bool cDevice::Transferring(void) const +{ + return dynamic_cast<cTransfer *>(player) != NULL; +} + bool cDevice::AttachPlayer(cPlayer *Player) { if (CanReplay()) { if (player) Detach(player); - if (!dynamic_cast<cTransfer *>(Player)) + if (!Transferring()) ClrAvailableTracks(); pesAssembler->Reset(); player = Player; |