mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
Better naming of increment variable + comment clarification.
This commit is contained in:
parent
e77045ac8a
commit
206475928b
12
setup.c
12
setup.c
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* See the README file for copyright information and how to reach the author.
|
* See the README file for copyright information and how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: setup.c,v 1.17 2007/10/01 15:30:22 ajhseppa Exp $
|
* $Id: setup.c,v 1.18 2007/10/01 15:38:44 ajhseppa Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -205,7 +205,7 @@ eOSState cIptvMenuEditChannel::ProcessKey(eKeys Key)
|
|||||||
cChannel newchannel;
|
cChannel newchannel;
|
||||||
SetChannelData(&newchannel);
|
SetChannelData(&newchannel);
|
||||||
bool uniquityFailed = false;
|
bool uniquityFailed = false;
|
||||||
bool firstIteration = true;
|
bool firstIncrement = true;
|
||||||
// Search for identical channels as these will be ignored by vdr
|
// Search for identical channels as these will be ignored by vdr
|
||||||
for (cChannel *iteratorChannel = Channels.First(); iteratorChannel;
|
for (cChannel *iteratorChannel = Channels.First(); iteratorChannel;
|
||||||
iteratorChannel = Channels.Next(iteratorChannel)) {
|
iteratorChannel = Channels.Next(iteratorChannel)) {
|
||||||
@ -227,12 +227,12 @@ eOSState cIptvMenuEditChannel::ProcessKey(eKeys Key)
|
|||||||
iteratorChannel->SetId(iteratorChannel->Nid(),
|
iteratorChannel->SetId(iteratorChannel->Nid(),
|
||||||
iteratorChannel->Tid(),
|
iteratorChannel->Tid(),
|
||||||
iteratorChannel->Sid(),
|
iteratorChannel->Sid(),
|
||||||
firstIteration ?
|
firstIncrement ?
|
||||||
0 : iteratorChannel->Rid() + 1);
|
0 : iteratorChannel->Rid() + 1);
|
||||||
|
|
||||||
// The first iteration prevents Rid:s from creeping slowly
|
// Try zero Rid:s at first increment. Prevents them from
|
||||||
// towards maximum value because they are always zeroed first
|
// creeping slowly towards their maximum value
|
||||||
firstIteration = false;
|
firstIncrement = false;
|
||||||
|
|
||||||
// Re-set the search and start again
|
// Re-set the search and start again
|
||||||
iteratorChannel = Channels.First();
|
iteratorChannel = Channels.First();
|
||||||
|
Loading…
Reference in New Issue
Block a user