From 77664895a13e0906e244473783b90a596b88d433 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 1 Feb 2015 18:21:48 +0100 Subject: [PATCH] command: improve observability of some audio properties In particular, this would fix the sending the initial change event. It was easily missed because MPV_EVENT_FILE_LOADED usually triggered it, but the actual property could change only later, because audio initialization really is kind of asynchronous to it. This probably fixes #1544. --- player/command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/player/command.c b/player/command.c index ab7e973b2e..b3adb5f731 100644 --- a/player/command.c +++ b/player/command.c @@ -3465,7 +3465,8 @@ static const char *const *const mp_event_property_change[] = { "video-format", "video-codec", "video-bitrate", "dwidth", "dheight", "width", "height", "fps", "aspect", "vo-configured"), E(MPV_EVENT_AUDIO_RECONFIG, "audio-format", "audio-codec", "audio-bitrate", - "samplerate", "channels", "audio"), + "samplerate", "channels", "audio", "volume", "mute", "balance", + "volume-restore-data"), E(MPV_EVENT_SEEK, "seeking", "core-idle"), E(MPV_EVENT_PLAYBACK_RESTART, "seeking", "core-idle"), E(MPV_EVENT_METADATA_UPDATE, "metadata", "filtered-metadata"),