summaryrefslogtreecommitdiffstats
path: root/player/screenshot.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/screenshot.c')
-rw-r--r--player/screenshot.c6
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;
}