summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-05-11 09:01:51 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-05-11 09:01:51 +0200
commit7a0054abbd50149874823cae3f234b00fd87ca70 (patch)
tree160768042c922b61ffc95b0e9838b4ff929666b6 /device.c
parent823945204cbf8e70c36ceab03ed6be37e5345338 (diff)
downloadvdr-7a0054abbd50149874823cae3f234b00fd87ca70.tar.gz
vdr-7a0054abbd50149874823cae3f234b00fd87ca70.tar.bz2
Implemented cDevice::ActualDevice()
Diffstat (limited to 'device.c')
-rw-r--r--device.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/device.c b/device.c
index 9346d3b5..b248114a 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.41 2003/05/03 13:40:15 kls Exp $
+ * $Id: device.c 1.42 2003/05/11 08:53:09 kls Exp $
*/
#include "device.h"
@@ -130,6 +130,14 @@ cSpuDecoder *cDevice::GetSpuDecoder(void)
return NULL;
}
+cDevice *cDevice::ActualDevice(void)
+{
+ cDevice *d = cTransferControl::ReceiverDevice();
+ if (!d)
+ d = PrimaryDevice();
+ return d;
+}
+
cDevice *cDevice::GetDevice(int Index)
{
return (0 <= Index && Index < numDevices) ? device[Index] : NULL;