Skip to content

Commit

Permalink
Evaluate unscannable source status once
Browse files Browse the repository at this point in the history
For some OCUR tuners (i.e. the Ceton), requesting
the status of whether the tuner has an inserted
CableCARD can take 2-3 seconds.  Repeatedly
making that determination at each channel insert
time can result in slow channel update times if
the channel list is large.  Determine the status
only once for the tuner.
  • Loading branch information
garybuhrmaster committed May 5, 2016
1 parent c83fc4c commit 8f91f77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mythtv/programs/mythfilldatabase/channeldata.cpp
Expand Up @@ -176,6 +176,8 @@ void ChannelData::handleChannels(int id, ChannelInfoList *chanlist)

fileprefix += "/";

bool insertChan = insert_chan(id); // unscannable source

ChannelInfoList::iterator i = chanlist->begin();
for (; i != chanlist->end(); ++i)
{
Expand Down Expand Up @@ -365,7 +367,7 @@ void ChannelData::handleChannels(int id, ChannelInfoList *chanlist)

}
}
else if (insert_chan(id)) // Only insert channels for non-scannable sources
else if (insertChan) // Only insert channels for non-scannable sources
{
int major, minor = 0;
long long freq = 0;
Expand Down

0 comments on commit 8f91f77

Please sign in to comment.