Skip to content

Commit

Permalink
Check on ATSC major number for suggested channel number
Browse files Browse the repository at this point in the history
Test on nonzero of the ATSC major number instead of the
minor number when generating a suggested channel number
because the major number is at least 1 but the minor
number can be 0 in an ATSC channel number.
  • Loading branch information
kmdewaal committed Feb 16, 2020
1 parent 6b7ac19 commit 7854a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/channelscan/channelimporter.cpp
Expand Up @@ -1590,7 +1590,7 @@ QString ChannelImporter::ComputeSuggestedChannelNum(
QString chan_num = channelFormat
.arg(chan.m_atscMajorChannel)
.arg(chan.m_atscMinorChannel);
if (chan.m_atscMinorChannel)
if (chan.m_atscMajorChannel)
{
if (!ChannelUtil::IsConflicting(chan_num, chan.m_sourceId))
return chan_num;
Expand Down

0 comments on commit 7854a45

Please sign in to comment.