Skip to content

Commit

Permalink
fix(UI): Fix resolution sorting (#6742)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and joeyparrish committed Jun 5, 2024
1 parent 78797b7 commit ce545e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/resolution_selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ shaka.ui.ResolutionSelection = class extends shaka.ui.SettingsMenu {
tracks.sort((t1, t2) => {
goog.asserts.assert(t1.height != null, 'Null height');
goog.asserts.assert(t2.height != null, 'Null height');
if (t2.height == t1.height) {
return t2.bandwidth - t1.bandwidth;
}
return t2.height - t1.height;
});
}
Expand Down

0 comments on commit ce545e0

Please sign in to comment.