Fix typo in quality check.

Closes #1300
This commit is contained in:
Kavin 2022-08-15 00:07:07 +05:30
parent 18ba85b549
commit fe7c1b43cf
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ export default {
var bestAudio = 0; var bestAudio = 0;
// Choose the best audio stream // Choose the best audio stream
if (qualityConds >= 480) if (quality >= 480)
player.getVariantTracks().forEach(track => { player.getVariantTracks().forEach(track => {
const audioBandwidth = track.audioBandwidth; const audioBandwidth = track.audioBandwidth;
if (audioBandwidth > bestAudio) bestAudio = audioBandwidth; if (audioBandwidth > bestAudio) bestAudio = audioBandwidth;