From ddfccd67d5da2f6b19f0057c89e3c497d248e212 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 16 Oct 2017 17:07:35 +0200 Subject: 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.) --- player/screenshot.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'player') 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; } -- cgit v1.2.3