mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user