Fix build bustage for bug 868405, CLOSED TREE
authorRobert O'Callahan <robert@ocallahan.org>
Thu, 30 May 2013 17:02:26 +1200
changeset 140527 72672b33604b1f38665b65f0f970b5d5a2d608f4
parent 140526 011c150e419d2ffb7efa66f406ec15670e131d4e
child 140528 fab554d11298336146df09d4f9464c624b61f767
push id3911
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 20:17:26 +0000
treeherdermozilla-aurora@7e26ca8db92b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs868405
milestone24.0a1
Fix build bustage for bug 868405, CLOSED TREE
media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp
--- a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp
+++ b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp
@@ -802,17 +802,18 @@ void MediaPipelineTransmit::PipelineList
 
   if (chunk.mFrame.GetForceBlack()) {
     uint32_t yPlaneLen = size.width*size.height;
     uint32_t cbcrPlaneLen = yPlaneLen/2;
     uint32_t length = yPlaneLen + cbcrPlaneLen;
 
     // Send a black image.
     nsAutoArrayPtr<uint8_t> pixelData;
-    pixelData = new (fallible_t()) uint8_t[length];
+    static const fallible_t fallible = fallible_t();
+    pixelData = new (fallible) uint8_t[length];
     if (pixelData) {
       memset(pixelData, 0x10, yPlaneLen);
       // Fill Cb/Cr planes
       memset(pixelData + yPlaneLen, 0x80, cbcrPlaneLen);
 
       MOZ_MTLOG(PR_LOG_DEBUG, "Sending a black video frame");
       conduit->SendVideoFrame(pixelData, length, size.width, size.height,
                               mozilla::kVideoI420, 0);