diff options
author | wm4 <wm4@nowhere> | 2015-02-01 18:21:48 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-01 18:21:48 +0100 |
commit | 77664895a13e0906e244473783b90a596b88d433 (patch) | |
tree | fbded5e7c970cbd245527a7c9aafb22f1f728000 /player/command.c | |
parent | 6f1357d87622670c9fdcbf92230a641a180e246f (diff) | |
download | mpv-77664895a13e0906e244473783b90a596b88d433.tar.bz2 mpv-77664895a13e0906e244473783b90a596b88d433.tar.xz |
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.
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"), |