CPVRChannelPtr CPVRChannelGroupsContainer::GetByUniqueID(int iUniqueChannelId, int iClientID) { CPVRChannelPtr channel; CPVRChannelGroupPtr channelgroup = GetGroupAllTV(); if (channelgroup) channel = channelgroup->GetByClient(iUniqueChannelId, iClientID); if (!channelgroup || !channel) channelgroup = GetGroupAllRadio(); if (channelgroup) channel = channelgroup->GetByClient(iUniqueChannelId, iClientID); return channel; }
CPVRChannelPtr CPVRChannelGroupsContainer::GetByUniqueID(int iClientChannelNumber, int iClientID) { CPVRChannelPtr channel; CPVRChannelGroupPtr channelgroup = GetGroupAllTV(); /* First try to find the channel in the all tv channels group */ if (channelgroup) channel = channelgroup->GetByClient(iClientChannelNumber, iClientID); if (!channelgroup || !channel) { /* Channel or group not found, try the all radio channels group instead */ channelgroup = GetGroupAllRadio(); if (channelgroup) channel = channelgroup->GetByClient(iClientChannelNumber, iClientID); } return channel; }