7a89bc99 by Gary Katsevman

we want to switch if bandwidth is undefined

1 parent 6b8e12ec
...@@ -114,7 +114,7 @@ videojs.Hls.prototype.handleSourceOpen = function() { ...@@ -114,7 +114,7 @@ videojs.Hls.prototype.handleSourceOpen = function() {
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 if (this.bandwidth !== undefined && this.bandwidth < this.playlists.bandwidth) { 117 if (this.bandwidth === undefined || 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();
......