diff options
author | Ashyni <jeffrey.c@tuta.io> | 2023-01-20 00:23:54 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-10-05 11:41:09 +0200 |
commit | d32f1aac3ffd2e7b766773446c4510a2cad397fb (patch) | |
tree | 54ae477ce0ed6d0483424156d867afd8e902e312 /filters/f_lavfi.c | |
parent | 8641cbaab6144d87bf7db5ab26ef95b6791c9149 (diff) | |
download | mpv-d32f1aac3ffd2e7b766773446c4510a2cad397fb.tar.bz2 mpv-d32f1aac3ffd2e7b766773446c4510a2cad397fb.tar.xz |
af/vf-command: add ability to target a specific lavfi filter
fixes: #11180
Diffstat (limited to 'filters/f_lavfi.c')
-rw-r--r-- | filters/f_lavfi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/filters/f_lavfi.c b/filters/f_lavfi.c index ec50dd5946..fe7d3e4527 100644 --- a/filters/f_lavfi.c +++ b/filters/f_lavfi.c @@ -814,7 +814,8 @@ static bool lavfi_command(struct mp_filter *f, struct mp_filter_command *cmd) switch (cmd->type) { case MP_FILTER_COMMAND_TEXT: { - return avfilter_graph_send_command(c->graph, "all", cmd->cmd, cmd->arg, + return avfilter_graph_send_command(c->graph, cmd->target, + cmd->cmd, cmd->arg, &(char){0}, 0, 0) >= 0; } case MP_FILTER_COMMAND_GET_META: { |