diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-11 09:01:51 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-11 09:01:51 +0200 |
commit | 7a0054abbd50149874823cae3f234b00fd87ca70 (patch) | |
tree | 160768042c922b61ffc95b0e9838b4ff929666b6 /device.c | |
parent | 823945204cbf8e70c36ceab03ed6be37e5345338 (diff) | |
download | vdr-7a0054abbd50149874823cae3f234b00fd87ca70.tar.gz vdr-7a0054abbd50149874823cae3f234b00fd87ca70.tar.bz2 |
Implemented cDevice::ActualDevice()
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 10 |
1 files changed, 9 insertions, 1 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.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; |