Back out bug 476731 in commit id 364777bc90b5 due to reftest failures

This commit is contained in:
Chris Double 2009-02-09 15:52:04 +13:00
commit efa39a8385
4 changed files with 4 additions and 4 deletions

View File

@ -8375,7 +8375,7 @@ fi # COMPILE_ENVIRONMENT && !LIBXUL_SDK_DIR
dnl Prevent the regeneration of autoconf.mk forcing rebuilds of the world
dnl Needs to be at the end to respect possible changes from NSPR configure
if cmp -b config/autoconf.mk config/autoconf.mk.orig; then
if cmp -s config/autoconf.mk config/autoconf.mk.orig; then
echo "config/autoconf.mk is unchanged"
mv -f config/autoconf.mk.orig config/autoconf.mk 2> /dev/null
else

View File

@ -127,7 +127,7 @@ nsresult nsChannelToPipeListener::OnStartRequest(nsIRequest* aRequest, nsISuppor
if (NS_SUCCEEDED(rv)) {
float duration = durationText.ToFloat(&ec);
if (ec == NS_OK && duration >= 0) {
mDecoder->SetDuration(PRInt64(duration*1000));
mDecoder->SetDuration(PRInt64(NS_round(duration*1000)));
}
}
}

View File

@ -13,7 +13,7 @@
function on_metadataloaded() {
var v = document.getElementById('v');
var d = Math.round(v.duration*1000);
ok(d == 232, "Checking duration: " + d);
ok(d == 233, "Checking duration: " + d);
SimpleTest.finish();
}

View File

@ -13,7 +13,7 @@
function on_metadataloaded() {
var v = document.getElementById('v');
var d = Math.round(v.duration*1000);
ok(d == 232, "Checking duration: " + d);
ok(d == 233, "Checking duration: " + d);
SimpleTest.finish();
}