diff options
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/player/command.c b/player/command.c index f3ab31aec5..3b20ec8f3d 100644 --- a/player/command.c +++ b/player/command.c @@ -1696,11 +1696,10 @@ static int mp_property_demuxer_cache_time(void *ctx, struct m_property *prop, if (demux_control(mpctx->demuxer, DEMUXER_CTRL_GET_READER_STATE, &s) < 1) return M_PROPERTY_UNAVAILABLE; - double ts = s.ts_range[1]; - if (ts == MP_NOPTS_VALUE) + if (s.ts_max == MP_NOPTS_VALUE) return M_PROPERTY_UNAVAILABLE; - return m_property_double_ro(action, arg, ts); + return m_property_double_ro(action, arg, s.ts_max); } static int mp_property_demuxer_cache_idle(void *ctx, struct m_property *prop, |