[vlc-devel] commit: test.html: print pretty output when vlc.input.length and vlc.input. time return -1. (Jean-Paul Saman )
git version control
git at videolan.org
Tue May 5 11:48:49 CEST 2009
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Tue May 5 10:33:42 2009 +0200| [256c86bfd984cd72d1fcb0460e2ff2630acb26f5] | committer: Jean-Paul Saman
test.html: print pretty output when vlc.input.length and vlc.input.time return -1.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=256c86bfd984cd72d1fcb0460e2ff2630acb26f5
---
projects/activex/test.html | 3 +++
projects/mozilla/test.html | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/projects/activex/test.html b/projects/activex/test.html
index f87932e..2f60860 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 f87932e..2f60860 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 )
More information about the vlc-devel
mailing list