diff options
author | wm4 <wm4@nowhere> | 2015-04-16 22:16:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-16 22:16:04 +0200 |
commit | f4292ebf52fb2e58a1ddbefb06bccd47a38bdc99 (patch) | |
tree | 822df368c66d24f292750910e22b942b7fa4db97 /player/screenshot.c | |
parent | 547976633f41c245b9accd6906166bb450e13557 (diff) | |
download | mpv-f4292ebf52fb2e58a1ddbefb06bccd47a38bdc99.tar.bz2 mpv-f4292ebf52fb2e58a1ddbefb06bccd47a38bdc99.tar.xz |
vf_screenshot: remove this filter
It's entirely useless, especially now that vo.c handles screenshots in a
generic way, and requires no special VO support. There are some
potential weird use-cases, but actually I've never seen it being used.
Diffstat (limited to 'player/screenshot.c')
-rw-r--r-- | player/screenshot.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/player/screenshot.c b/player/screenshot.c index 3a1a41a4ca..f722b9561f 100644 --- a/player/screenshot.c +++ b/player/screenshot.c @@ -32,7 +32,6 @@ #include "options/path.h" #include "video/mp_image.h" #include "video/decode/dec_video.h" -#include "video/filter/vf.h" #include "video/out/vo.h" #include "video/image_writer.h" #include "sub/osd.h" @@ -330,11 +329,7 @@ static struct mp_image *screenshot_get(struct MPContext *mpctx, int mode) if (mode == MODE_SUBTITLES && osd_get_render_subs_in_filter(mpctx->osd)) mode = 0; - // vf_screenshot - if (mpctx->d_video && mpctx->d_video->vfilter) - vf_control_any(mpctx->d_video->vfilter, VFCTRL_SCREENSHOT, &image); - - if (!image && mpctx->video_out && mpctx->video_out->config_ok) { + if (mpctx->video_out && mpctx->video_out->config_ok) { vo_wait_frame(mpctx->video_out); // important for each-frame mode if (mode != MODE_FULL_WINDOW) |