summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-30 13:21:36 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:09 +0900
commit07acf5cb9aceb028043ccb25ce89b6ad22713259 (patch)
treeb160b5c1912d03012a6e30506587f563ad1058db
parent8e1e814166e3a43c7873bda83120cea631984979 (diff)
downloadmpv-07acf5cb9aceb028043ccb25ce89b6ad22713259.tar.bz2
mpv-07acf5cb9aceb028043ccb25ce89b6ad22713259.tar.xz
vf: fix crash if filter doesn't provide control entrypoint
This input command crashed: vf add @mf:format=yuv420p ; show_text "${vf-metadata/mf}" Fixes #1408.
-rw-r--r--video/filter/vf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/filter/vf.c b/video/filter/vf.c
index bf3f73c0e6..7a5b08bcd9 100644
--- a/video/filter/vf.c
+++ b/video/filter/vf.c
@@ -174,7 +174,7 @@ int vf_control_by_label(struct vf_chain *c,int cmd, void *arg, bstr label)
char *label_str = bstrdup0(NULL, label);
struct vf_instance *cur = vf_find_by_label(c, label_str);
talloc_free(label_str);
- if (cur)
+ if (cur && cur->control)
return cur->control(cur, cmd, arg);
else
return CONTROL_UNKNOWN;