1af2580f by Gary Katsevman

Actually don't downswitch

1 parent b8b1cf04
......@@ -113,8 +113,8 @@ videojs.Hls.prototype.handleSourceOpen = function() {
oldMediaPlaylist = this.playlists.media();
if (this.bandwidth !== this.playlists.bandwidth ||
(this.bandwidth && this.bandwidth < this.playlists.bandwidth)) {
if (this.bandwidth !== this.playlists.bandwidth) {
if (this.bandwidth !== undefined && this.bandwidth < this.playlists.bandwidth) {
this.bandwidth = this.playlists.bandwidth;
selectedPlaylist = this.selectPlaylist();
......@@ -131,6 +131,9 @@ videojs.Hls.prototype.handleSourceOpen = function() {
} else {
this.fillBuffer();
}
} else {
this.fillBuffer();
}
player.one('play', videojs.bind(this, this.fillBuffer));
......