diff options
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; |