diff options
author | wm4 <wm4@nowhere> | 2015-02-01 18:25:12 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-01 18:25:12 +0100 |
commit | 720eb187fd33c6ccf7f6f75a94fb5a7b94c9ebf8 (patch) | |
tree | b606044dfa5ec03cdee3015ef03ad80859c6004e /player/loadfile.c | |
parent | 77664895a13e0906e244473783b90a596b88d433 (diff) | |
download | mpv-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/loadfile.c')
-rw-r--r-- | player/loadfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index 92018135e7..549aacc8de 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1019,6 +1019,7 @@ static void play_current_file(struct MPContext *mpctx) stream_enable_cache(&mpctx->stream, &opts->stream_cache); + mp_notify(mpctx, MP_EVENT_CHANGE_ALL, NULL); mp_process_input(mpctx); if (mpctx->stop_play) goto terminate_playback; |