From 54b6389873210d06c86c0d3bda4e9ca48a1c094d Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 5 Jun 2015 18:59:13 +0200 Subject: vf_sub: minor simplification --- player/video.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'player') diff --git a/player/video.c b/player/video.c index bd9c82e788..433d5cc618 100644 --- a/player/video.c +++ b/player/video.c @@ -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); } -- cgit v1.2.3