diff options
author | wm4 <wm4@nowhere> | 2017-10-16 17:07:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-16 17:07:35 +0200 |
commit | ddfccd67d5da2f6b19f0057c89e3c497d248e212 (patch) | |
tree | a4d2351047e1bad35f586a4f87b27a66764fb40c /player/screenshot.c | |
parent | 9e140775bcbf3fa37dce67790325788c41451e08 (diff) | |
download | mpv-ddfccd67d5da2f6b19f0057c89e3c497d248e212.tar.bz2 mpv-ddfccd67d5da2f6b19f0057c89e3c497d248e212.tar.xz |
video: remove special path for hwdec screenshots
This was phased out, and was used only by vdpau by now. Drop the
mechanism and the vdpau special code, which means screenshots won't
include the vf_vdpaupp processing anymore. (I don't care enough about
vdpau, it's on its way out.)
Diffstat (limited to 'player/screenshot.c')
-rw-r--r-- | player/screenshot.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/player/screenshot.c b/player/screenshot.c index 7f79b2cbcd..dae39fdbae 100644 --- a/player/screenshot.c +++ b/player/screenshot.c @@ -404,12 +404,6 @@ static struct mp_image *screenshot_get(struct MPContext *mpctx, int mode) if (image && (image->fmt.flags & MP_IMGFLAG_HWACCEL)) { struct mp_image *nimage = mp_image_hw_download(image, NULL); - if (!nimage && mpctx->vo_chain && mpctx->vo_chain->hwdec_devs) { - struct mp_hwdec_ctx *ctx = - hwdec_devices_get_first(mpctx->vo_chain->hwdec_devs); - if (ctx && ctx->download_image) - nimage = ctx->download_image(ctx, image, NULL); - } talloc_free(image); image = nimage; } |