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.)
This commit is contained in:
wm4
2017-10-16 17:07:35 +02:00
parent 9e140775bc
commit ddfccd67d5
4 changed files with 1 additions and 102 deletions

View File

@@ -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;
}