diff --git a/mythtv/libs/libmythtv/tvbrowsehelper.cpp b/mythtv/libs/libmythtv/tvbrowsehelper.cpp index 3de9464f1af..3fc9dd3ef05 100644 --- a/mythtv/libs/libmythtv/tvbrowsehelper.cpp +++ b/mythtv/libs/libmythtv/tvbrowsehelper.cpp @@ -54,8 +54,6 @@ void TVBrowseHelper::BrowseInit(std::chrono::seconds BrowseMaxForward, bool Brow m_dbChannumToChanids.insert(chan.m_chanNum,chan.m_chanId); } - m_dbAllVisibleChannels = ChannelUtil::GetChannels(0, true, "channum, callsign"); - ChannelUtil::SortChannels(m_dbAllVisibleChannels, DBChannelOrdering, false); start(); } @@ -342,7 +340,7 @@ void TVBrowseHelper::GetNextProgramDB(BrowseDirection direction, InfoMap& Infoma if (chandir != -1) { - chanid = ChannelUtil::GetNextChannel(m_dbAllVisibleChannels, + chanid = ChannelUtil::GetNextChannel(m_dbAllChannels, chanid, 0 /* mplexid_restriction */, 0 /* chanid restriction */, diff --git a/mythtv/libs/libmythtv/tvbrowsehelper.h b/mythtv/libs/libmythtv/tvbrowsehelper.h index ccc12fecde9..7304e79380b 100644 --- a/mythtv/libs/libmythtv/tvbrowsehelper.h +++ b/mythtv/libs/libmythtv/tvbrowsehelper.h @@ -72,7 +72,6 @@ class TVBrowseHelper : public MThread TV* m_parent { nullptr }; ChannelInfoList m_dbAllChannels; - ChannelInfoList m_dbAllVisibleChannels; std::chrono::seconds m_dbBrowseMaxForward { 0s }; bool m_dbBrowseAllTuners { false }; bool m_dbUseChannelGroups { false };