Bug 1413993 - Remove unused USEC_PER_SEC constant r=jya
authorJon Coppeard <jcoppeard@mozilla.com>
Fri, 03 Nov 2017 10:25:26 +0000
changeset 443301 79def5ebdec25eb87e18fc1694bb44ed2ae8886d
parent 443300 101466a6bd46d25c6e079e9e1e07b342afcc0735
child 443302 fc7fdeed66bc8a7232822bef6b87f7ad0f462169
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1413993
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1413993 - Remove unused USEC_PER_SEC constant r=jya This constant is #defined in some MacOS system headers which causes compile errors.
dom/media/mediasource/ContainerParser.cpp
--- a/dom/media/mediasource/ContainerParser.cpp
+++ b/dom/media/mediasource/ContainerParser.cpp
@@ -123,17 +123,16 @@ public:
   explicit WebMContainerParser(const MediaContainerType& aType)
     : ContainerParser(aType)
     , mParser(0)
     , mOffset(0)
   {
   }
 
   static const unsigned NS_PER_USEC = 1000;
-  static const unsigned USEC_PER_SEC = 1000000;
 
   MediaResult IsInitSegmentPresent(MediaByteBuffer* aData) override
   {
     ContainerParser::IsInitSegmentPresent(aData);
     if (aData->Length() < 4) {
       return NS_ERROR_NOT_AVAILABLE;
     }