mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 22:35:43 +00:00
Bug 1334111 - Log MediaKeySystemConfiguration on creation of MediaKeySystemAccess. r=gerald
This makes it easier to tell what's going on; whether we've created a MediaKeySystemConfiguration which can persist state. MozReview-Commit-ID: L4dbmMVYhsM --HG-- extra : rebase_source : e47e60f5091b6b5477b2c8bd63ba408922706082
This commit is contained in:
parent
098502268f
commit
7442ac32b0
@ -50,6 +50,9 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(MediaKeySystemAccess)
|
||||
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
static nsCString
|
||||
ToCString(const MediaKeySystemConfiguration& aConfig);
|
||||
|
||||
MediaKeySystemAccess::MediaKeySystemAccess(nsPIDOMWindowInner* aParent,
|
||||
const nsAString& aKeySystem,
|
||||
const MediaKeySystemConfiguration& aConfig)
|
||||
@ -57,6 +60,8 @@ MediaKeySystemAccess::MediaKeySystemAccess(nsPIDOMWindowInner* aParent,
|
||||
, mKeySystem(aKeySystem)
|
||||
, mConfig(aConfig)
|
||||
{
|
||||
EME_LOG("Created MediaKeySystemAccess for keysystem=%s config=%s",
|
||||
NS_ConvertUTF16toUTF8(mKeySystem).get(), mozilla::dom::ToCString(mConfig).get());
|
||||
}
|
||||
|
||||
MediaKeySystemAccess::~MediaKeySystemAccess()
|
||||
|
Loading…
Reference in New Issue
Block a user