public void SetVideoInputIndex(int index, bool setRelated)
{
Routing current = this.videoRoutingList[index];
int depth = current.depth + 1;
for (int j = 0; j < depth; j++)
{
int hr = current.crossbar.Route(current.outputIndex, current.inputIndex);
//ASSERT (0 == hr);
if (setRelated && current.outputIndexRelated != -1 && current.inputIndexRelated != -1)
hr = current.crossbar.Route(current.outputIndexRelated, current.inputIndexRelated);
Trace.WriteLineIf(trace.TraceInfo, string.Format("Routing, VideoOutIndex={0} VideoInIndex={1}",
current.outputIndex, current.inputIndex));
if (index + 1 < this.videoRoutingList.Count)
current = this.videoRoutingList[index + 1]; //pCurrent++;
}
this.currentVideoRoutingIndex = index;
}