diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2020-06-27 10:24:46 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2020-06-27 10:24:46 +0200 |
commit | a526eee1651ca643a3f3c88a0c852a43261a7ebb (patch) | |
tree | cba7a2f1b987c041e3a17966e228566a8f459bf6 /device.h | |
parent | 848c65fe4f56b95bf26035296f77b091a16ae704 (diff) | |
download | vdr-a526eee1651ca643a3f3c88a0c852a43261a7ebb.tar.gz vdr-a526eee1651ca643a3f3c88a0c852a43261a7ebb.tar.bz2 |
Fixed the 'else if' branch in cDevice::GetDeviceForTransponder(), which hasn't been active since version 1.7.292.4.3
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 7 |
1 files changed, 6 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.h 4.16 2020/06/10 14:52:43 kls Exp $ + * $Id: device.h 4.17 2020/06/27 10:24:46 kls Exp $ */ #ifndef __DEVICE_H @@ -211,6 +211,11 @@ protected: ///< device (On = false), it should do so in this function. ///< A derived class must call the MakePrimaryDevice() function of its ///< base class. + virtual bool IsBonded(void) const { return false; } + ///< Returns true if this device is bonded to an other device. + ///< Only implemented by cDvbDevice and used in GetDeviceForTransponder(). + ///< May be dropped in a future version, if a better solution is found. + ///< Do not use otherwise! public: bool IsPrimaryDevice(void) const { return this == primaryDevice && HasDecoder(); } int CardIndex(void) const { return cardIndex; } |