4b3dcf60 by David LaPalomento

Clean up whitespace in inner loop

Open a new scope so that we can make a local alias for the first tag left in the segment parser. Avoid breaking lines in weird places.
1 parent 9e12846d
......@@ -394,14 +394,17 @@ var
// FLV tags until we find the one that is closest to the desired
// playback time
if (typeof offset === 'number') {
while (segmentParser.getTags()[0].pts < offset) {
(function() {
var tag = segmentParser.getTags()[0];
for (; tag.pts < offset; tag = segmentParser.getTags()[0]) {
segmentParser.getNextTag();
}
// tell the SWF where we will be seeking to
player.hls.el().vjs_setProperty('currentTime',
segmentParser.getTags()[0].pts * 0.001);
player.hls.el().vjs_setProperty('currentTime', tag.pts * 0.001);
lastSeekedTime = null;
})();
}
while (segmentParser.tagsAvailable()) {
......