Skip to content

Commit ecf9b30

Browse files
committed
fixup
1 parent 671749b commit ecf9b30

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/decrypters/HelperPr.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ bool DRM::PRHeaderParser::Parse(const std::vector<uint8_t>& prHeader)
194194
}
195195

196196
std::string_view ver = XML::GetAttrib(nodeWRM, "version");
197-
LOG::Log(LOGDEBUG, "Parsing Playready header version %s", ver.data());
198197

199198
xml_node nodeDATA = nodeWRM.child("DATA");
200199
if (!nodeDATA)

src/parser/DASHTree.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,15 +1271,13 @@ void adaptive::CDashTree::ParseTagContentProtection(
12711271
}
12721272
else if (childName == "mspr:pro" || childName == "pro")
12731273
{
1274-
if (protScheme.kid.empty() || protScheme.pssh.empty())
1274+
DRM::PRHeaderParser parser;
1275+
if (parser.Parse(node.child_value()))
12751276
{
1276-
DRM::PRHeaderParser parser;
1277-
if (parser.Parse(node.child_value()))
1278-
{
1279-
protScheme.kid = STRING::ToHexadecimal(parser.GetKID());
1280-
protScheme.pssh =
1281-
BASE64::Encode(DRM::PSSH::Make(DRM::ID_PLAYREADY, {}, parser.GetInitData()));
1282-
}
1277+
protScheme.kid = STRING::ToHexadecimal(parser.GetKID());
1278+
protScheme.pssh =
1279+
BASE64::Encode(DRM::PSSH::Make(DRM::ID_PLAYREADY, {}, parser.GetInitData()));
1280+
protScheme.licenseUrl = parser.GetLicenseURL();
12831281
}
12841282
}
12851283
}

0 commit comments

Comments
 (0)