diff options
author | wm4 <wm4@nowhere> | 2015-06-05 18:59:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-05 18:59:13 +0200 |
commit | 54b6389873210d06c86c0d3bda4e9ca48a1c094d (patch) | |
tree | 186c1a8a7c3befb622c5a60414d611b4f444f581 /player/video.c | |
parent | b68627ed2b441f92648409d14a540b2ecac993de (diff) | |
download | mpv-54b6389873210d06c86c0d3bda4e9ca48a1c094d.tar.bz2 mpv-54b6389873210d06c86c0d3bda4e9ca48a1c094d.tar.xz |
vf_sub: minor simplification
Diffstat (limited to 'player/video.c')
-rw-r--r-- | player/video.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |