From da612acacdf41a9a72b095fa582a6b37996b0811 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 15 Jul 2019 03:16:38 +0200 Subject: command: make vf-metadata/af-metadata somewhat observable Until now they weren't observable and never reported any updates. Apply a shitty hack to make them mostly-observable. It relies on the "idle" event, which is basically triggered on every frame displayed, or similar. This can lead to property change notifications not being sent quickly enough. The cleaner solution would be adding a notification mechanisms from filters, but I'm too lazy for that. --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/command.c b/player/command.c index e8822c2f69..5dce2ccd05 100644 --- a/player/command.c +++ b/player/command.c @@ -3621,7 +3621,7 @@ static const char *const *const mp_event_property_change[] = { "vo-delayed-frame-count", "mistimed-frame-count", "vsync-ratio", "estimated-display-fps", "vsync-jitter", "sub-text", "audio-bitrate", "video-bitrate", "sub-bitrate", "decoder-frame-drop-count", - "frame-drop-count", "video-frame-info"), + "frame-drop-count", "video-frame-info", "vf-metadata", "af-metadata"), E(MP_EVENT_DURATION_UPDATE, "duration"), E(MPV_EVENT_VIDEO_RECONFIG, "video-out-params", "video-params", "video-format", "video-codec", "video-bitrate", "dwidth", "dheight", -- cgit v1.2.3