Bug 951288 - Use NS_WARN_IF_FALSE rather than NS_WARNING to fix bustage and reopen the CLOSED TREE.
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 20 Feb 2014 16:28:10 -0500
changeset 170118 1acdcb6714972eb6a2556f1f055182251c2795dd
parent 170117 a20e77e55c4f8ec2d93c0145641fc7b52ad51121
child 170119 bb4e11e818fe400abf57ff103266f77cf5f28a31
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
bugs951288
milestone30.0a1
Bug 951288 - Use NS_WARN_IF_FALSE rather than NS_WARNING to fix bustage and reopen the CLOSED TREE.
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_WARNING(startTime < endTime,
-                 "Start time must be before end time");
+      NS_WARN_IF_FALSE(startTime < endTime,
+                       "Start time must be before end time");
       aRanges.AppendElement(SeekRange(startOffset,
                                       endOffset,
                                       startTime,
                                       endTime));
      }
   }
   if (NS_FAILED(ResetDecode())) {
     return NS_ERROR_FAILURE;