diff options
author | wm4 <wm4@nowhere> | 2016-09-20 15:31:25 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-20 15:44:11 +0200 |
commit | bf385e1140069fb1c6d41161aece0fe099513ac0 (patch) | |
tree | bebb5b971fa22a2d15992cecbd9a501b09b2e1b5 /player/command.c | |
parent | fe872f56884a3a5c506d49d9601713d0e6de1973 (diff) | |
download | mpv-bf385e1140069fb1c6d41161aece0fe099513ac0.tar.bz2 mpv-bf385e1140069fb1c6d41161aece0fe099513ac0.tar.xz |
player: kill associated OSD and key bindings when removing a script
The former was done already for Lua scripts, but move it to the generic
code.
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index d5d95602a6..721a79df83 100644 --- a/player/command.c +++ b/player/command.c @@ -5282,7 +5282,8 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re case MP_CMD_DEFINE_INPUT_SECTION: mp_input_define_section(mpctx->input, cmd->args[0].v.s, "<api>", - cmd->args[1].v.s, !!cmd->args[2].v.i); + cmd->args[1].v.s, !!cmd->args[2].v.i, + cmd->sender); break; case MP_CMD_AB_LOOP: { |