osc: reinit on playlist changes

This takes care of the corner case where the player is started with a
single playlist entry so that the next/prev arrows are greyed out, but
remain that way even after new elements are added to the playlist.
This commit is contained in:
Kevin Mitchell 2015-08-29 00:26:34 -07:00
parent 2cfa62e651
commit f14f6fdb31
1 changed files with 1 additions and 0 deletions

View File

@ -1972,6 +1972,7 @@ validate_user_opts()
mp.register_event("start-file", request_init)
mp.register_event("tracks-changed", request_init)
mp.observe_property("playlist", nil, request_init)
mp.register_script_message("enable-osc", function() enable_osc(true) end)
mp.register_script_message("disable-osc", function() enable_osc(false) end)