Skip to content

Commit 1fc9e5e

Browse files
authored
Fix undefined error when no protectionController is available (Dash-Industry-Forum#4834)
1 parent 69ed81d commit 1fc9e5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streaming/utils/CapabilitiesFilter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ function CapabilitiesFilter() {
318318
}
319319

320320
function _addGenericAttributesToConfig(rep, config) {
321-
if (rep && rep[DashConstants.CONTENT_PROTECTION] && rep[DashConstants.CONTENT_PROTECTION].length > 0) {
321+
if (protectionController && rep && rep[DashConstants.CONTENT_PROTECTION] && rep[DashConstants.CONTENT_PROTECTION].length > 0) {
322322
config.keySystemsMetadata = protectionController.getSupportedKeySystemMetadataFromContentProtection(rep[DashConstants.CONTENT_PROTECTION])
323323
}
324324
return config

0 commit comments

Comments
 (0)