Bug 1407063 - Fix non-unified build in ESDS.cpp. r?gerald draft
authorPhilippe Normand <philn@igalia.com>
Thu, 05 Oct 2017 15:55:43 +0200
changeset 677020 6c2142793b8da6b14b44c586aec0d7f24f849b5c
parent 677019 82b8c11aa5b6e324d5d0e03c358d0186cb60dae3
child 677021 66d9ac60a8c23c7f02ae07e732a43ba18fa53fe3
push id83665
push userbmo:cpearce@mozilla.com
push dateMon, 09 Oct 2017 21:50:20 +0000
reviewersgerald
bugs1407063
milestone58.0a1
Bug 1407063 - Fix non-unified build in ESDS.cpp. r?gerald Fallible is used in this compilation unit so the corresponding header needs to be included. The <new> header is also required for new placement calls. MozReview-Commit-ID: 2eZ8U1wDYs8
media/libstagefright/frameworks/av/media/libstagefright/ESDS.cpp
--- a/media/libstagefright/frameworks/av/media/libstagefright/ESDS.cpp
+++ b/media/libstagefright/frameworks/av/media/libstagefright/ESDS.cpp
@@ -15,17 +15,18 @@
  */
 
 //#define LOG_NDEBUG 0
 #undef LOG_TAG
 #define LOG_TAG "ESDS"
 #include <utils/Log.h>
 
 #include "include/ESDS.h"
-
+#include "mozilla/fallible.h"
+#include <new>
 #include <string.h>
 
 namespace stagefright {
 
 ESDS::ESDS(const void *data, size_t size)
     : mData(new (mozilla::fallible) uint8_t[size]),
       mSize(size),
       mInitCheck(NO_INIT),