diff options
author | wm4 <wm4@nowhere> | 2013-12-03 23:50:01 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-04 00:07:40 +0100 |
commit | 079e0e796350a3df64c03619b7593e1d934bf321 (patch) | |
tree | 307a03dc192c3c409631bf56d75d7d2575157b90 /mpvcore | |
parent | 0d5e4ba7991cad632bde45790bd52b77b856d3a5 (diff) | |
download | mpv-079e0e796350a3df64c03619b7593e1d934bf321.tar.bz2 mpv-079e0e796350a3df64c03619b7593e1d934bf321.tar.xz |
vf_vo: don't abuse option strings to set VO
Whoever thought this was a good idea should be punched.
Diffstat (limited to 'mpvcore')
-rw-r--r-- | mpvcore/player/video.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mpvcore/player/video.c b/mpvcore/player/video.c index c422b6997e..6560192fb4 100644 --- a/mpvcore/player/video.c +++ b/mpvcore/player/video.c @@ -60,10 +60,10 @@ static void recreate_video_filters(struct MPContext *mpctx) vf_uninit_filter_chain(d_video->vfilter); - char *vf_arg[] = { - "_oldargs_", (char *)mpctx->video_out, NULL - }; - d_video->vfilter = vf_open_filter(opts, NULL, "vo", vf_arg); + d_video->vfilter = vf_open_filter(opts, NULL, "vo", NULL); + if (!d_video->vfilter) + abort(); + d_video->vfilter->control(d_video->vfilter, VFCTRL_SET_VO, mpctx->video_out); d_video->vfilter = append_filters(d_video->vfilter, opts->vf_settings); |