mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Cosmetic changes in channelgroups.c
This commit is contained in:
parent
700543b394
commit
45a2d6bee0
@ -13,19 +13,16 @@ void cChannelGroups::ReadChannelGroups(void) {
|
||||
int lastChannelNumber = 0;
|
||||
#if VDRVERSNUM >= 20301
|
||||
LOCK_CHANNELS_READ;
|
||||
const cChannel *first = Channels->First();
|
||||
const cChannels *channels = Channels;
|
||||
#else
|
||||
const cChannel *first = Channels.First();
|
||||
const cChannels *channels = &Channels;
|
||||
#endif
|
||||
const cChannel *first = channels->First();
|
||||
if (!first->GroupSep()) {
|
||||
channelGroups.push_back(cChannelGroup(tr("Main Program")));
|
||||
setStart = true;
|
||||
}
|
||||
#if VDRVERSNUM >= 20301
|
||||
for (const cChannel *channel = Channels->First(); channel; channel = Channels->Next(channel)) {
|
||||
#else
|
||||
for (const cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel)) {
|
||||
#endif
|
||||
for (const cChannel *channel = channels->First(); channel; channel = channels->Next(channel)) {
|
||||
if (setStart && (channelGroups.size() > 0)) {
|
||||
channelGroups[channelGroups.size() - 1].SetChannelStart(channel->Number());
|
||||
setStart = false;
|
||||
|
Loading…
Reference in New Issue
Block a user