CPVRChannelPtr CPVRGUIChannelNavigator::GetNextOrPrevChannel(bool bNext) { const bool bPlayingRadio = CServiceBroker::GetPVRManager().IsPlayingRadio(); const bool bPlayingTV = CServiceBroker::GetPVRManager().IsPlayingTV(); if (bPlayingTV || bPlayingRadio) { const CPVRChannelGroupPtr group = CServiceBroker::GetPVRManager().GetPlayingGroup(bPlayingRadio); if (group) { CSingleLock lock(m_critSection); const CFileItemPtr item = bNext ? group->GetNextChannel(m_currentChannel) : group->GetPreviousChannel(m_currentChannel);; if (item) return item->GetPVRChannelInfoTag(); } } return CPVRChannelPtr(); }