Bug 1116056 - Change MOZ_ASSERT() to NS_WARNING() in Box::Read(); r=jya
authorAnthony Jones <ajones@mozilla.com>
Wed, 14 Jan 2015 16:57:14 +1300
changeset 223700 2896167fae141cf518577a9d9e1d18161cd2bf72
parent 223699 0c9c9c240b070bfbbc953d2d5584b3f04f0ae052
child 223701 7d3ef4f3fa8fc5509203c0290fa7941bdbaad07b
push id10811
push usercbook@mozilla.com
push dateWed, 14 Jan 2015 13:52:17 +0000
treeherderfx-team@b8d38d19dbd9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1116056
milestone38.0a1
Bug 1116056 - Change MOZ_ASSERT() to NS_WARNING() in Box::Read(); r=jya
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();
   }
 }
 }