Decrement currentSource length on splice

This commit is contained in:
Omar Roth 2018-04-10 21:54:23 -05:00
parent 20c0bff96d
commit a8db5aaed8
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ var currentSources = player.currentSources();
for ( var i = 0; i < currentSources.length; i++ ) {
if (player.canPlayType(currentSources[i]["type"].split(";")[0]) === "") {
currentSources.splice(i);
i--;
}
}