Changing for loop.

This commit is contained in:
sr1990 2022-05-15 09:26:17 -07:00
parent cfd13ce6d9
commit c659fe9441

View File

@ -432,10 +432,10 @@ public class DashManifestParser extends DefaultHandler
// In case of clear key, update the licence server url of // In case of clear key, update the licence server url of
// previously parsed common encryption drmSchemeData. // previously parsed common encryption drmSchemeData.
if (drmSchemeType != null && drmSchemeType == "clearkey") { if (drmSchemeType != null && drmSchemeType == "clearkey") {
for (int i = 0;i<drmSchemeDatas.size();i++) { for (SchemeData drmSchemeData : drmSchemeDatas) {
if (drmSchemeDatas.get(i).uuid == C.COMMON_PSSH_UUID if (drmSchemeData.uuid == C.COMMON_PSSH_UUID
&& drmSchemeDatas.get(i).licenseServerUrl == null) && drmSchemeData.licenseServerUrl == null)
drmSchemeDatas.get(i).licenseServerUrl = contentProtection.second.licenseServerUrl; drmSchemeData.licenseServerUrl = contentProtection.second.licenseServerUrl;
} }
} }
drmSchemeDatas.add(contentProtection.second); drmSchemeDatas.add(contentProtection.second);