From 256c86bfd984cd72d1fcb0460e2ff2630acb26f5 Mon Sep 17 00:00:00 2001 From: Jean-Paul Saman Date: Tue, 5 May 2009 10:33:42 +0200 Subject: [PATCH] test.html: print pretty output when vlc.input.length and vlc.input.time return -1. --- projects/activex/test.html | 3 +++ projects/mozilla/test.html | 3 +++ 2 files changed, 6 insertions(+) diff --git a/projects/activex/test.html b/projects/activex/test.html index f87932eac7..2f60860891 100644 --- a/projects/activex/test.html +++ b/projects/activex/test.html @@ -391,6 +391,9 @@ function updateVolume(deltaVol) function formatTime(timeVal) { + if( typeof timeVal != 'number' ) + return "-:--:--"; + var timeHour = Math.round(timeVal / 1000); var timeSec = timeHour % 60; if( timeSec < 10 ) diff --git a/projects/mozilla/test.html b/projects/mozilla/test.html index f87932eac7..2f60860891 100644 --- a/projects/mozilla/test.html +++ b/projects/mozilla/test.html @@ -391,6 +391,9 @@ function updateVolume(deltaVol) function formatTime(timeVal) { + if( typeof timeVal != 'number' ) + return "-:--:--"; + var timeHour = Math.round(timeVal / 1000); var timeSec = timeHour % 60; if( timeSec < 10 ) -- 2.39.2