diff --git a/dom/media/VideoUtils.cpp b/dom/media/VideoUtils.cpp index ef7cdda857cf..57b7a94811df 100644 --- a/dom/media/VideoUtils.cpp +++ b/dom/media/VideoUtils.cpp @@ -29,6 +29,10 @@ namespace mozilla { +NS_NAMED_LITERAL_CSTRING(kEMEKeySystemClearkey, "org.w3.clearkey"); +NS_NAMED_LITERAL_CSTRING(kEMEKeySystemWidevine, "com.widevine.alpha"); +NS_NAMED_LITERAL_CSTRING(kEMEKeySystemPrimetime, "com.adobe.primetime"); + using layers::PlanarYCbCrImage; CheckedInt64 SaferMultDiv(int64_t aValue, uint32_t aMul, uint32_t aDiv) { diff --git a/dom/media/VideoUtils.h b/dom/media/VideoUtils.h index c9179d9d3e78..a297a6f54662 100644 --- a/dom/media/VideoUtils.h +++ b/dom/media/VideoUtils.h @@ -40,9 +40,9 @@ using mozilla::CheckedUint32; namespace mozilla { // EME Key System String. -static NS_NAMED_LITERAL_CSTRING(kEMEKeySystemClearkey, "org.w3.clearkey"); -static NS_NAMED_LITERAL_CSTRING(kEMEKeySystemWidevine, "com.widevine.alpha"); -static NS_NAMED_LITERAL_CSTRING(kEMEKeySystemPrimetime, "com.adobe.primetime"); +extern const nsLiteralCString kEMEKeySystemClearkey; +extern const nsLiteralCString kEMEKeySystemWidevine; +extern const nsLiteralCString kEMEKeySystemPrimetime; /** * ReentrantMonitorConditionallyEnter