From a00e79f243dd6548eb3a06829542c1fa668e7383 Mon Sep 17 00:00:00 2001 From: Karl Tomlinson Date: Wed, 18 Jun 2014 17:23:57 +1200 Subject: [PATCH] b=1024901 revert TrackTicks range assertion to warning, unintentionally changed in b33b8af66151 r=roc --HG-- extra : transplant_source : %D8%F8%C3%C2%C3%BF%29%F5%9C%3DiG%04%F9%86Gu%29%9A%8C --- content/media/StreamBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/media/StreamBuffer.h b/content/media/StreamBuffer.h index 45ec7f2ebbd..a81a60a1df0 100644 --- a/content/media/StreamBuffer.h +++ b/content/media/StreamBuffer.h @@ -31,7 +31,7 @@ inline TrackTicks RateConvertTicksRoundDown(TrackRate aOutRate, { NS_ASSERTION(0 < aOutRate && aOutRate <= TRACK_RATE_MAX, "Bad out rate"); NS_ASSERTION(0 < aInRate && aInRate <= TRACK_RATE_MAX, "Bad in rate"); - NS_ASSERTION(0 <= aTicks && aTicks <= TRACK_TICKS_MAX, "Bad ticks"); + NS_WARN_IF_FALSE(0 <= aTicks && aTicks <= TRACK_TICKS_MAX, "Bad ticks"); // bug 957691 return (aTicks * aOutRate) / aInRate; } inline TrackTicks RateConvertTicksRoundUp(TrackRate aOutRate,