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:
parent
978e099b65
commit
94369170b8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user