From 956a5d9ac61ffe4034abcc81405e8ecdacac8b36 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Mar 2020 17:13:33 +0100 Subject: player: add potentially forgotten property change trigger Unfortunately, merely changing the playlist current position affects the flags returned by the "playlist" property, so the entirely thing needs to be marked as changed. Seems to be a design mistake. --- player/loadfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/player/loadfile.c b/player/loadfile.c index 5dd8b7efbf..4d16a66376 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1826,6 +1826,7 @@ void mp_set_playlist_entry(struct MPContext *mpctx, struct playlist_entry *e) assert(!e || playlist_entry_to_index(mpctx->playlist, e) >= 0); mpctx->playlist->current = e; mpctx->playlist->current_was_replaced = false; + mp_notify(mpctx, MP_EVENT_CHANGE_PLAYLIST, NULL); // Make it pick up the new entry. if (mpctx->stop_play != PT_QUIT) mpctx->stop_play = e ? PT_CURRENT_ENTRY : PT_STOP; -- cgit v1.2.3