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 Dec 5, 2022
1 parent d600109 commit 6915a97
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 @@ -1123,7 +1123,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 6915a97

Please sign in to comment.