summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-03-21 17:13:33 +0100
committerwm4 <wm4@nowhere>2020-03-21 19:32:50 +0100
commit956a5d9ac61ffe4034abcc81405e8ecdacac8b36 (patch)
tree1db0e48d5e2197efdf6ee0ab0178ccc6eb4209b7
parente9e93b4dbe748cd341a6fbea355e6ba013ada81b (diff)
downloadmpv-956a5d9ac61ffe4034abcc81405e8ecdacac8b36.tar.bz2
mpv-956a5d9ac61ffe4034abcc81405e8ecdacac8b36.tar.xz
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.
-rw-r--r--player/loadfile.c1
1 files changed, 1 insertions, 0 deletions
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;