summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_sub.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-05 18:59:13 +0200
committerwm4 <wm4@nowhere>2015-06-05 18:59:13 +0200
commit54b6389873210d06c86c0d3bda4e9ca48a1c094d (patch)
tree186c1a8a7c3befb622c5a60414d611b4f444f581 /video/filter/vf_sub.c
parentb68627ed2b441f92648409d14a540b2ecac993de (diff)
downloadmpv-54b6389873210d06c86c0d3bda4e9ca48a1c094d.tar.bz2
mpv-54b6389873210d06c86c0d3bda4e9ca48a1c094d.tar.xz
vf_sub: minor simplification
Diffstat (limited to 'video/filter/vf_sub.c')
-rw-r--r--video/filter/vf_sub.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/video/filter/vf_sub.c b/video/filter/vf_sub.c
index 775d9449e5..20069ee1b1 100644
--- a/video/filter/vf_sub.c
+++ b/video/filter/vf_sub.c
@@ -121,10 +121,8 @@ static int query_format(struct vf_instance *vf, unsigned int fmt)
static int control(vf_instance_t *vf, int request, void *data)
{
switch (request) {
- case VFCTRL_SET_OSD_OBJ:
- vf->priv->osd = data;
- return CONTROL_TRUE;
case VFCTRL_INIT_OSD:
+ vf->priv->osd = data;
return CONTROL_TRUE;
}
return CONTROL_UNKNOWN;