Fix ordering of new inserted tracks
Previously, when adding multiple AV tracks, the new tracks were always added at the same index. Because audio tracks are added before the insertion index, later video tracks would be inserted too early in the list. This patch increments the insertion index for each new added track.
This bug was reported as #1233
Edited by Eric Jiang