vf_sub: minor simplification

This commit is contained in:
wm4
2015-06-05 18:59:13 +02:00
parent b68627ed2b
commit 54b6389873
3 changed files with 3 additions and 7 deletions

View File

@@ -176,9 +176,8 @@ static void recreate_video_filters(struct MPContext *mpctx)
vf_append_filter_list(d_video->vfilter, opts->vf_settings);
// for vf_sub
vf_control_any(d_video->vfilter, VFCTRL_SET_OSD_OBJ, mpctx->osd);
osd_set_render_subs_in_filter(mpctx->osd,
vf_control_any(d_video->vfilter, VFCTRL_INIT_OSD, NULL) == CONTROL_OK);
vf_control_any(d_video->vfilter, VFCTRL_INIT_OSD, mpctx->osd) > 0);
set_allowed_vo_formats(d_video->vfilter, mpctx->video_out);
}