Skip to content

Commit

Permalink
Determine tuner type in ChannelScanSM constructor
Browse files Browse the repository at this point in the history
Initialize the m_scanDTVTunerType with the tuner type as found
in the card already in the ChannelScanSM constructor.
The need for this was indicated by a chanscan:debug log showing
tuner type UNKNOWN when doing a "Scan of existing transports".

(cherry picked from commit ba7caf2)
  • Loading branch information
kmdewaal committed Apr 20, 2022
1 parent bbd8355 commit bfae001
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp
Expand Up @@ -162,6 +162,7 @@ ChannelScanSM::ChannelScanSM(ScanMonitor *scan_monitor,
m_analogSignalHandler(new AnalogSignalHandler(this))
{
m_current = m_scanTransports.end();
m_scanDTVTunerType = GuessDTVTunerType(DTVTunerType(DTVTunerType::kTunerTypeUnknown));

// Create a stream data for digital signal monitors
DTVSignalMonitor* dtvSigMon = GetDTVSignalMonitor();
Expand Down Expand Up @@ -1825,7 +1826,7 @@ ScanDTVTransportList ChannelScanSM::GetChannelList(bool addFullTS) const

uint cardid = m_channel->GetInputID();

DTVTunerType tuner_type(DTVTunerType::kTunerTypeATSC);
DTVTunerType tuner_type;
tuner_type = GuessDTVTunerType(tuner_type);

for (const auto & it : qAsConst(m_channelList))
Expand Down

0 comments on commit bfae001

Please sign in to comment.