From 661856d0e138e5f1bc6809341b66e69eff903b1b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 6 Aug 2017 13:34:44 +0100 Subject: Unify local/global devices and tuners into a single coherent service --- p2pvr/devices/frontend.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'p2pvr/devices/frontend.cpp') diff --git a/p2pvr/devices/frontend.cpp b/p2pvr/devices/frontend.cpp index c6f258b..1026a20 100644 --- a/p2pvr/devices/frontend.cpp +++ b/p2pvr/devices/frontend.cpp @@ -6,7 +6,7 @@ namespace P2PVR { namespace DVB { -Frontend::Frontend(Tuner * t, const struct dvb_frontend_info & i, IceTray::Logging::LoggerPtr log) : +Frontend::Frontend(TunerI * t, const struct dvb_frontend_info & i, IceTray::Logging::LoggerPtr log) : tuner(t), fe_info(i), logger(log) @@ -28,8 +28,8 @@ Frontend::GetStatus() const { fe_status_t status; if (ioctl(tuner->frontendFD, FE_READ_STATUS, &status) < 0) { - logger->messagebf(LOG::ERR, "Reading frontend %s status failed (%s:%d)", tuner->Device(), strerror(errno), errno); - throw P2PVR::DeviceError(tuner->Device(), strerror(errno), errno); + logger->messagebf(LOG::ERR, "Reading frontend %s status failed (%s:%d)", tuner->GetDevice(), strerror(errno), errno); + throw P2PVR::DeviceError(tuner->GetDevice(), strerror(errno), errno); } return status; } @@ -42,5 +42,5 @@ Frontend::FactoryKey(fe_type t) } } -INSTANTIATEFACTORY(P2PVR::DVB::Frontend, P2PVR::DVB::Tuner *, const struct dvb_frontend_info &); +INSTANTIATEFACTORY(P2PVR::DVB::Frontend, P2PVR::DVB::TunerI *, const struct dvb_frontend_info &); -- cgit v1.2.3