Commit c659fe94 by sr1990

Changing for loop.

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