Bug 951288 - Convert assertion to a warning to hide intermittent test failures. r=cpearce
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 20 Feb 2014 15:52:57 -0500
changeset 170108 ffd9d3ae66fe011bdb80aebe6db01b31ed8aef23
parent 170107 723bd507c9ee50f5ad138cd33fa16c19e86ba0ae
child 170109 0f213da041376943d90fc69b62665535a317727e
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewerscpearce
bugs951288
milestone30.0a1
Bug 951288 - Convert assertion to a warning to hide intermittent test failures. r=cpearce
content/media/ogg/OggReader.cpp
--- a/content/media/ogg/OggReader.cpp
+++ b/content/media/ogg/OggReader.cpp
@@ -1085,18 +1085,18 @@ nsresult OggReader::GetSeekRanges(nsTArr
       return NS_ERROR_FAILURE;
     }
     int64_t startOffset = range.mStart;
     int64_t endOffset = range.mEnd;
     startTime = RangeStartTime(startOffset);
     if (startTime != -1 &&
         ((endTime = RangeEndTime(endOffset)) != -1))
     {
-      NS_ASSERTION(startTime < endTime,
-                   "Start time must be before end time");
+      NS_WARNING(startTime < endTime,
+                 "Start time must be before end time");
       aRanges.AppendElement(SeekRange(startOffset,
                                       endOffset,
                                       startTime,
                                       endTime));
      }
   }
   if (NS_FAILED(ResetDecode())) {
     return NS_ERROR_FAILURE;