handle unsupported codecs better

This commit is contained in:
ed 2021-05-18 03:44:30 +02:00
parent 58040cc0ed
commit fed8d94885

View file

@ -242,8 +242,8 @@ var pbar = (function () {
}; };
r.drawpos = function () { r.drawpos = function () {
if (!mp.au) if (!mp.au || isNaN(mp.au.duration) || isNaN(mp.au.currentTime))
return; return; // not-init || unsupp-codec
var bc = r.buf, var bc = r.buf,
pc = r.pos, pc = r.pos,