Bug 1302359 - Fix Promise.Reject() typo from bug 1299072 r=jya
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Tue, 13 Sep 2016 10:22:59 +0200
changeset 344649 ddef3dbd2276ef3133b9ab18b1414085204b95a1
parent 344648 47a1480e715d8a08c1da6545c2c52a8c71915942
child 344650 c7e88c3a55411715489671c64d76049fca937862
push id8
push userfmarier@mozilla.com
push dateThu, 15 Sep 2016 05:23:20 +0000
reviewersjya
bugs1302359, 1299072
milestone51.0a1
Bug 1302359 - Fix Promise.Reject() typo from bug 1299072 r=jya MozReview-Commit-ID: 42XAL3TFGIF
dom/media/omx/MediaOmxReader.cpp
--- a/dom/media/omx/MediaOmxReader.cpp
+++ b/dom/media/omx/MediaOmxReader.cpp
@@ -284,17 +284,17 @@ void MediaOmxReader::HandleResourceAlloc
                                     &width, &height);
     nsIntRect pictureRect(0, 0, width, height);
 
     // Validate the container-reported frame and pictureRect sizes. This ensures
     // that our video frame creation code doesn't overflow.
     nsIntSize displaySize(displayWidth, displayHeight);
     nsIntSize frameSize(width, height);
     if (!IsValidVideoRegion(frameSize, pictureRect, displaySize)) {
-      mMetadataPromise.RejectNS_ERROR_DOM_MEDIA_METADATA_ERR, __func__);
+      mMetadataPromise.Reject(NS_ERROR_DOM_MEDIA_METADATA_ERR, __func__);
       return;
     }
 
     // Video track's frame sizes will not overflow. Activate the video track.
     mHasVideo = true;
     mInfo.mVideo.mDisplay = displaySize;
     mPicture = pictureRect;
     mInitialFrame = frameSize;