- completed unit tests from LG models

- fixed handling of broken files with circular linked-channel-list
This commit is contained in:
hbeham
2013-05-07 00:27:17 +02:00
parent e0b0c8f114
commit ede6144d91
59 changed files with 18969 additions and 2256 deletions

View File

@@ -411,6 +411,8 @@ namespace ChanSort.Loader.LG
{
int offEntry = off + index*satConfig.sizeOfChannelLinkedListEntry;
int nextIndex = BitConverter.ToUInt16(fileContent, offEntry + 2);
if (this.nextChannelIndex.ContainsKey(index)) // prevent infinite loop (exists in some test files)
break;
this.nextChannelIndex.Add(index, nextIndex);
index = nextIndex;
}