summaryrefslogtreecommitdiff
path: root/dom/media/eme/MediaKeySession.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/eme/MediaKeySession.cpp')
-rw-r--r--dom/media/eme/MediaKeySession.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/dom/media/eme/MediaKeySession.cpp b/dom/media/eme/MediaKeySession.cpp
index d5eff3f773..72585d272c 100644
--- a/dom/media/eme/MediaKeySession.cpp
+++ b/dom/media/eme/MediaKeySession.cpp
@@ -154,10 +154,9 @@ MediaKeySession::UpdateKeyStatusMap()
nsAutoCString message(
nsPrintfCString("MediaKeySession[%p,'%s'] key statuses change {",
this, NS_ConvertUTF16toUTF8(mSessionId).get()));
- using IntegerType = typename std::underlying_type<MediaKeyStatus>::type;
for (const CDMCaps::KeyStatus& status : keyStatuses) {
message.Append(nsPrintfCString(" (%s,%s)", ToBase64(status.mId).get(),
- MediaKeyStatusValues::strings[static_cast<IntegerType>(status.mStatus)].value));
+ MediaKeyStatusValues::strings[status.mStatus].value));
}
message.Append(" }");
EME_LOG(message.get());