Skip to content

Commit

Permalink
Fix build after 32b0546
Browse files Browse the repository at this point in the history
There should be no need to make DTVSignalMonitor dependent
on DVBChannel. I've reverted that part of the patch.

Refs #11021
  • Loading branch information
stuarta authored and jyavenard committed Mar 8, 2013
1 parent 93f2d2b commit d626d56
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
11 changes: 0 additions & 11 deletions mythtv/libs/libmythtv/recorders/dtvsignalmonitor.cpp
Expand Up @@ -4,7 +4,6 @@
using namespace std;

#include "dtvchannel.h"
#include "dvbchannel.h"
#include "dtvsignalmonitor.h"
#include "scanstreamdata.h"
#include "mpegtables.h"
Expand Down Expand Up @@ -372,12 +371,7 @@ void DTVSignalMonitor::HandlePMT(uint, const ProgramMapTable *pmt)
{
if (pmt->IsEncrypted(GetDTVChannel()->GetSIStandard()) &&
!ignore_encrypted)
{
DVBChannel *dvbchannel = GetDVBChannel();
if (dvbchannel)
dvbchannel->SetPMT(pmt);
AddFlags(kDTVSigMon_WaitForCrypt);
}

AddFlags(kDTVSigMon_PMTMatch);
}
Expand Down Expand Up @@ -551,11 +545,6 @@ const ScanStreamData *DTVSignalMonitor::GetScanStreamData() const
return dynamic_cast<const ScanStreamData*>(stream_data);
}

DVBChannel *DTVSignalMonitor::GetDVBChannel(void)
{
return dynamic_cast<DVBChannel*>(channel);
}

bool DTVSignalMonitor::IsAllGood(void) const
{
QMutexLocker locker(&statusLock);
Expand Down
2 changes: 0 additions & 2 deletions mythtv/libs/libmythtv/recorders/dtvsignalmonitor.h
Expand Up @@ -11,7 +11,6 @@ using namespace std;
#include "streamlisteners.h"

class DTVChannel;
class DVBChannel;

class DTVSignalMonitor : public SignalMonitor,
public MPEGStreamListener,
Expand Down Expand Up @@ -104,7 +103,6 @@ class DTVSignalMonitor : public SignalMonitor,

protected:
DTVChannel *GetDTVChannel(void);
DVBChannel *GetDVBChannel(void);
void UpdateMonitorValues(void);
void UpdateListeningForEIT(void);

Expand Down
8 changes: 8 additions & 0 deletions mythtv/libs/libmythtv/recorders/dvbsignalmonitor.cpp
Expand Up @@ -17,6 +17,7 @@
#include "cardutil.h"

#include "dvbtypes.h"
#include "dvbchannel.h"
#include "dvbrecorder.h"
#include "dvbstreamhandler.h"

Expand Down Expand Up @@ -171,6 +172,13 @@ QStringList DVBSignalMonitor::GetStatusList(void) const
void DVBSignalMonitor::HandlePMT(uint program_num, const ProgramMapTable *pmt)
{
DTVSignalMonitor::HandlePMT(program_num, pmt);

if (pmt->ProgramNumber() == (uint)programNumber)
{
DVBChannel *dvbchannel = GetDVBChannel();
if (dvbchannel)
dvbchannel->SetPMT(pmt);
}
}

void DVBSignalMonitor::HandleSTT(const SystemTimeTable *stt)
Expand Down

0 comments on commit d626d56

Please sign in to comment.