mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 21:51:51 -10:00
Bug 1304722 - don't define nsCString constants in VideoUtils.h; r=mattwoodrow
Doing this causes a separate copy of each string to be included in each compilation unit that includes VideoUtils.h, and since global nsLiteralCString objects require a static constructor, injects static constructors into all those compilation units as well. Moving the object definitions to a source file and leaving the declarations in the header makes everything work as expected.
This commit is contained in:
1 parent
88510925e8
commit
6d0e9ec925
2 files changed
+7
-3
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user