From a4b21b5a13a3caa883003a3c9f798e0b0eb8d9bd Mon Sep 17 00:00:00 2001 From: xylosper Date: Fri, 23 Jan 2015 09:28:21 +0900 Subject: player: some fixes for property notification `core-idle` depends on seeking state `mpctx->restart_complete`, so make `core-idle` notified whenever `seeking` is notified, too. `paused-for-cache` can be changed on MPV_EVENT_CACHE_UPDATE obviously. Finally, `MPV_EVENT_PLAYBACK_RESTART` should be notified after `mpctx->restart_complete` changed. Conflicts: player/command.c --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/playloop.c') diff --git a/player/playloop.c b/player/playloop.c index 649ccdb7ce..55ff59fa10 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -902,8 +902,8 @@ void run_playloop(struct MPContext *mpctx) fill_audio_out_buffers(mpctx, endpts); // actually play prepared buffer if (!mpctx->restart_complete) { mpctx->hrseek_active = false; - mp_notify(mpctx, MPV_EVENT_PLAYBACK_RESTART, NULL); mpctx->restart_complete = true; + mp_notify(mpctx, MPV_EVENT_PLAYBACK_RESTART, NULL); if (!mpctx->playing_msg_shown) { if (opts->playing_msg) { char *msg = -- cgit v1.2.3