Skip to content

Commit c03c1bd

Browse files
committed
Fix axccessing a null value
1 parent 9b9505b commit c03c1bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streaming/MediaPlayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2781,7 +2781,7 @@ function MediaPlayer() {
27812781
if (value.audioChannelConfiguration !== undefined) {
27822782
output.audioChannelConfiguration = __sanitizeDescriptorType('audioChannelConfiguration', value.audioChannelConfiguration, defaults.audioChannelConfiguration);
27832783
}
2784-
if (value.role !== undefined) {
2784+
if (value.role !== undefined && value.role !== null) {
27852785
output.role = __sanitizeDescriptorType('role', value.role, defaults.role);
27862786

27872787
// conceal misspelled "Main" from earlier MPEG-DASH editions (fixed with 6th edition)

0 commit comments

Comments
 (0)