summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-04 14:58:24 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-04 14:58:24 +0100
commitd5c739790b51c1503bad54b2edf384f359ed2a3b (patch)
tree87b9c108757e97365264bb40ebb0f96bb926f687 /device.c
parent8831fe304fd7992c4017b434d3d6e70478b34872 (diff)
downloadvdr-d5c739790b51c1503bad54b2edf384f359ed2a3b.tar.gz
vdr-d5c739790b51c1503bad54b2edf384f359ed2a3b.tar.bz2
Implemented cDevice::Transferring()
Diffstat (limited to 'device.c')
-rw-r--r--device.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/device.c b/device.c
index faa59fd3..6a03ade0 100644
--- a/device.c
+++ b/device.c
@@ -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;