6e8d5532 by Tom Johnson

syntax update per @gkatsev request

1 parent 4e0ea0a2
...@@ -677,7 +677,7 @@ videojs.Hls.getPlaylistDuration = function(playlist, startIndex, endIndex) { ...@@ -677,7 +677,7 @@ videojs.Hls.getPlaylistDuration = function(playlist, startIndex, endIndex) {
677 677
678 for (; i >= startIndex; i--) { 678 for (; i >= startIndex; i--) {
679 segment = playlist.segments[i]; 679 segment = playlist.segments[i];
680 dur += (segment.duration !== undefined ? segment.duration : playlist.targetDuration || 0); 680 dur += (segment.duration !== undefined ? segment.duration : playlist.targetDuration) || 0;
681 } 681 }
682 682
683 return dur; 683 return dur;
......