Bug 1116056 - Change MOZ_ASSERT() to NS_WARNING() in Box::Read(). r=jya, a=sledru
authorAnthony Jones <ajones@mozilla.com>
Wed, 14 Jan 2015 16:57:14 +1300
changeset 242957 54386fba64a7
parent 242956 ea7deca21c27
child 242958 1f392909ff1f
push id4345
push userryanvm@gmail.com
push date2015-01-20 17:32 +0000
treeherdermozilla-beta@598cd9c2e480 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya, sledru
bugs1116056
milestone36.0
Bug 1116056 - Change MOZ_ASSERT() to NS_WARNING() in Box::Read(). r=jya, a=sledru
media/libstagefright/binding/Box.cpp
--- a/media/libstagefright/binding/Box.cpp
+++ b/media/libstagefright/binding/Box.cpp
@@ -93,13 +93,13 @@ void
 Box::Read(nsTArray<uint8_t>* aDest)
 {
   aDest->SetLength(mRange.mEnd - mChildOffset);
   size_t bytes;
   if (!mContext->mSource->CachedReadAt(mChildOffset, &(*aDest)[0],
                                        aDest->Length(), &bytes) ||
       bytes != aDest->Length()) {
     // Byte ranges are being reported incorrectly
-    MOZ_ASSERT(false);
+    NS_WARNING("Read failed in mp4_demuxer::Box::Read()");
     aDest->Clear();
   }
 }
 }