From b4f24544bbfdd2bec765db08f5d745fadeb4d111 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 31 Jul 2014 04:19:41 +0200 Subject: client API: make "cache" property and similar observable Achieve this by polling. Will be used by the OSC. Basically a bad hack - but the point is that the mpv core itself is in the best position to improve this later. --- player/command.c | 1 + 1 file changed, 1 insertion(+) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index eedbc0bbc7..27fcadcb29 100644 --- a/player/command.c +++ b/player/command.c @@ -2792,6 +2792,7 @@ static const char *const *const mp_event_property_change[] = { "samplerate", "channels", "audio"), E(MPV_EVENT_METADATA_UPDATE, "metadata"), E(MPV_EVENT_CHAPTER_CHANGE, "chapter", "chapter-metadata"), + E(MP_EVENT_CACHE_UPDATE, "cache", "cache-free", "cache-used"), }; #undef E -- cgit v1.2.3