summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index cae7e02805..c0800d612d 100644
--- a/player/command.c
+++ b/player/command.c
@@ -1099,6 +1099,11 @@ static int mp_property_cache(void *ctx, struct m_property *prop,
if (cache < 0)
return M_PROPERTY_UNAVAILABLE;
+ if (action == M_PROPERTY_PRINT) {
+ *(char **)arg = talloc_asprintf(NULL, "%d %%", (int)cache);
+ return M_PROPERTY_OK;
+ }
+
return m_property_float_ro(action, arg, cache);
}