Skip to content

Commit

Permalink
fix(HLS): Single alternative video renditions not working (#4785)
Browse files Browse the repository at this point in the history
Closes #4780
  • Loading branch information
avelad authored and joeyparrish committed Dec 8, 2022
1 parent 5a21251 commit 4d2371f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hls/hls_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ shaka.hls.HlsParser = class {
shaka.log.debug('Guessing audio-only.');
type = ContentType.AUDIO;
ignoreStream = true;
} else if (res.video.length) {
} else if (res.video.length && !res.audio.length) {
// There are associated video streams. Assume this is audio.
shaka.log.debug('Guessing audio-only.');
type = ContentType.AUDIO;
Expand Down

0 comments on commit 4d2371f

Please sign in to comment.