Commit c659fe94 by sr1990

Changing for loop.

parent cfd13ce6
...@@ -432,10 +432,10 @@ public class DashManifestParser extends DefaultHandler ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment