Bug 1407063 - Fix non-unified build in ESDS.cpp. r=gerald
authorPhilippe Normand <philn@igalia.com>
Thu, 05 Oct 2017 15:55:43 +0200
changeset 427902 315142c8e038972b16ca4b1c91327b7416a5289d
parent 427901 103a0e570e3099ef0ed19b5fcb30e9cae9893bdf
child 427903 827c8955e797f747414fe80c67ba1be95885d010
push id97
push userfmarier@mozilla.com
push dateSat, 14 Oct 2017 01:12:59 +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),