Commit 256c86bf authored by Jean-Paul Saman's avatar Jean-Paul Saman

test.html: print pretty output when vlc.input.length and vlc.input.time return -1.

parent 38340809
......@@ -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 )
......
......@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment