1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 12:17:12 +00:00

command: better check whether file duration is available

This commit is contained in:
wm4 2013-12-17 13:49:11 +01:00
parent 978e099b65
commit 94369170b8

View File

@ -390,7 +390,7 @@ static bool time_remaining(MPContext *mpctx, double *remaining)
*remaining = len - (pos - start);
return !!(int)len;
return len > 0;
}
static int mp_property_remaining(m_option_t *prop, int action,