summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2019-03-10 12:10:01 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2019-03-10 12:10:01 +0100
commit18bb52554f8dbaa72cfb6ca72ebd64c04b738950 (patch)
treef75f38bff41ee2f0708761c5582ed6ac2795032a /dvbdevice.c
parentb9162ad7bddc2484775711ddcbb4b2a602bfa8b3 (diff)
downloadvdr-18bb52554f8dbaa72cfb6ca72ebd64c04b738950.tar.gz
vdr-18bb52554f8dbaa72cfb6ca72ebd64c04b738950.tar.bz2
Fixed accessing the actual frontend on multi frontend devices
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index c708aef9..9835645b 100644
--- a/dvbdevice.c
+++ b/dvbdevice.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.c 4.18 2018/10/29 12:22:11 kls Exp $
+ * $Id: dvbdevice.c 4.19 2019/03/10 12:03:20 kls Exp $
*/
#include "dvbdevice.h"
@@ -571,6 +571,7 @@ public:
bool ProvidesDeliverySystem(int DeliverySystem) const;
bool ProvidesModulation(int System, int StreamId, int Modulation) const;
bool ProvidesFrontend(const cChannel *Channel, bool Activate = false) const;
+ int Frontend(void) const { return frontend; }
int FrontendType(void) const { return frontendType; }
const char *FrontendName(void) { return dvbFrontend->FrontendName(); }
int NumProvidedSystems(void) const { return numDeliverySystems + numModulations; }
@@ -1869,6 +1870,11 @@ int DvbOpen(const char *Name, int Adapter, int Frontend, int Mode, bool ReportEr
return fd;
}
+int cDvbDevice::Frontend(void) const
+{
+ return dvbTuner ? dvbTuner->Frontend() : frontend;
+}
+
bool cDvbDevice::Exists(int Adapter, int Frontend)
{
cString FileName = DvbName(DEV_DVB_FRONTEND, Adapter, Frontend);