summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-01 18:25:12 +0100
committerwm4 <wm4@nowhere>2015-02-01 18:25:12 +0100
commit720eb187fd33c6ccf7f6f75a94fb5a7b94c9ebf8 (patch)
treeb606044dfa5ec03cdee3015ef03ad80859c6004e /player/command.c
parent77664895a13e0906e244473783b90a596b88d433 (diff)
downloadmpv-720eb187fd33c6ccf7f6f75a94fb5a7b94c9ebf8.tar.bz2
mpv-720eb187fd33c6ccf7f6f75a94fb5a7b94c9ebf8.tar.xz
command: send additional property change events in-between loading
Opening the stream and opening the demuxer are both done asynchronously, meaning the player reacts to client API requests. They also can potentially take a while. Thus it's better to process outstanding property changes, so that change events are sent for properties that were changed during opening.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index b3adb5f731..09bd118f7f 100644
--- a/player/command.c
+++ b/player/command.c
@@ -3452,6 +3452,7 @@ static const char *const *const mp_event_property_change[] = {
E(MPV_EVENT_START_FILE, "*"),
E(MPV_EVENT_END_FILE, "*"),
E(MPV_EVENT_FILE_LOADED, "*"),
+ E(MP_EVENT_CHANGE_ALL, "*"),
E(MPV_EVENT_TRACKS_CHANGED, "track-list"),
E(MPV_EVENT_TRACK_SWITCHED, "vid", "video", "aid", "audio", "sid", "sub",
"secondary-sid"),