dc304941 by Tom Johnson

syntax update

1 parent 2c75f66c
...@@ -374,8 +374,9 @@ ...@@ -374,8 +374,9 @@
374 this.manifest.targetDuration = entry.duration; 374 this.manifest.targetDuration = entry.duration;
375 }, 375 },
376 'endlist': function() { 376 'endlist': function() {
377 var calculatedDuration = 0; 377 var calculatedDuration = 0,
378 for(var i = 0; i < this.manifest.segments.length; i++) { 378 i;
379 for( i = 0; i < this.manifest.segments.length; i++) {
379 if(this.manifest.segments[i].duration) { 380 if(this.manifest.segments[i].duration) {
380 calculatedDuration += this.manifest.segments[i].duration; 381 calculatedDuration += this.manifest.segments[i].duration;
381 } else if (this.manifest.targetDuration) { 382 } else if (this.manifest.targetDuration) {
......