diff options
Diffstat (limited to 'video/filter/vf.c')
-rw-r--r-- | video/filter/vf.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/video/filter/vf.c b/video/filter/vf.c index 35de0f23a7..d8e7f6b4c8 100644 --- a/video/filter/vf.c +++ b/video/filter/vf.c @@ -71,7 +71,6 @@ static const vf_info_t *const filter_list[] = { &vf_info_noformat, &vf_info_flip, -#if HAVE_LIBAVFILTER &vf_info_mirror, &vf_info_lavfi, &vf_info_rotate, @@ -79,7 +78,6 @@ static const vf_info_t *const filter_list[] = { &vf_info_pullup, &vf_info_yadif, &vf_info_stereo3d, -#endif &vf_info_eq, &vf_info_dsize, @@ -163,6 +161,17 @@ static void vf_control_all(struct vf_chain *c, int cmd, void *arg) } } +int vf_send_command(struct vf_chain *c, char *label, char *cmd, char *arg) +{ + char *args[2] = {cmd, arg}; + if (strcmp(label, "all") == 0) { + vf_control_all(c, VFCTRL_COMMAND, args); + return 0; + } else { + return vf_control_by_label(c, VFCTRL_COMMAND, args, bstr0(label)); + } +} + static void vf_fix_img_params(struct mp_image *img, struct mp_image_params *p) { // Filters must absolutely set these correctly. |