From 720eb187fd33c6ccf7f6f75a94fb5a7b94c9ebf8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 1 Feb 2015 18:25:12 +0100 Subject: 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. --- player/loadfile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'player/loadfile.c') 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; -- cgit v1.2.3