1af2580f by Gary Katsevman

Actually don't downswitch

1 parent b8b1cf04
...@@ -113,8 +113,8 @@ videojs.Hls.prototype.handleSourceOpen = function() { ...@@ -113,8 +113,8 @@ videojs.Hls.prototype.handleSourceOpen = function() {
113 113
114 oldMediaPlaylist = this.playlists.media(); 114 oldMediaPlaylist = this.playlists.media();
115 115
116 if (this.bandwidth !== this.playlists.bandwidth || 116 if (this.bandwidth !== this.playlists.bandwidth) {
117 (this.bandwidth && this.bandwidth < this.playlists.bandwidth)) { 117 if (this.bandwidth !== undefined && this.bandwidth < this.playlists.bandwidth) {
118 this.bandwidth = this.playlists.bandwidth; 118 this.bandwidth = this.playlists.bandwidth;
119 119
120 selectedPlaylist = this.selectPlaylist(); 120 selectedPlaylist = this.selectPlaylist();
...@@ -131,6 +131,9 @@ videojs.Hls.prototype.handleSourceOpen = function() { ...@@ -131,6 +131,9 @@ videojs.Hls.prototype.handleSourceOpen = function() {
131 } else { 131 } else {
132 this.fillBuffer(); 132 this.fillBuffer();
133 } 133 }
134 } else {
135 this.fillBuffer();
136 }
134 137
135 player.one('play', videojs.bind(this, this.fillBuffer)); 138 player.one('play', videojs.bind(this, this.fillBuffer));
136 139
......