mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
6f1357d876
commit
77664895a1
|
@ -3465,7 +3465,8 @@ static const char *const *const mp_event_property_change[] = {
|
||||||
"video-format", "video-codec", "video-bitrate", "dwidth", "dheight",
|
"video-format", "video-codec", "video-bitrate", "dwidth", "dheight",
|
||||||
"width", "height", "fps", "aspect", "vo-configured"),
|
"width", "height", "fps", "aspect", "vo-configured"),
|
||||||
E(MPV_EVENT_AUDIO_RECONFIG, "audio-format", "audio-codec", "audio-bitrate",
|
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_SEEK, "seeking", "core-idle"),
|
||||||
E(MPV_EVENT_PLAYBACK_RESTART, "seeking", "core-idle"),
|
E(MPV_EVENT_PLAYBACK_RESTART, "seeking", "core-idle"),
|
||||||
E(MPV_EVENT_METADATA_UPDATE, "metadata", "filtered-metadata"),
|
E(MPV_EVENT_METADATA_UPDATE, "metadata", "filtered-metadata"),
|
||||||
|
|
Loading…
Reference in New Issue