Skip to content

Commit

Permalink
whitespace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjohnson916 committed Apr 1, 2014
1 parent 6a093d6 commit 10f21cc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/js/player.js
Expand Up @@ -504,24 +504,18 @@ vjs.Player.prototype.onDurationChange = function(){
// We need to get the techGet response and check for a value so we don't
// accidentally cause the stack to blow up.
var duration = this.techGet('duration');

if (duration) {

if (duration < 0) {

duration = Infinity;
}

this.duration(duration);

// Determine if the stream is live and propagate styles down to UI.
if (duration === Infinity) {
this.addClass('vjs-live');
} else {
this.removeClass('vjs-live');
}
}

};

/**
Expand Down

0 comments on commit 10f21cc

Please sign in to comment.