hwdec: remove unused fields

These were replaced by a different mechanism, but the old fields weren't
removed.
This commit is contained in:
wm4 2017-12-20 00:29:22 +01:00 committed by Martin Herkt
parent 7e2252688b
commit 2ce7face96
No known key found for this signature in database
GPG Key ID: C24B9CD04DC6AE7F
3 changed files with 0 additions and 9 deletions

View File

@ -15,12 +15,6 @@ struct mp_hwdec_ctx {
// List of IMGFMT_s, terminated with 0. NULL if N/A.
int *supported_formats;
// Hint to generic code: it's using a wrapper API
bool emulated;
// Optional. Do not set for VO-bound devices.
void (*destroy)(struct mp_hwdec_ctx *ctx);
};
// Used to communicate hardware decoder device handles from VO to video decoder.

View File

@ -176,8 +176,6 @@ struct mp_vaapi_ctx *va_initialize(VADisplay *display, struct mp_log *plog,
if (av_hwdevice_ctx_init(res->av_device_ref) < 0)
goto error;
res->hwctx.emulated = va_guess_if_emulated(res);
return res;
error:

View File

@ -563,7 +563,6 @@ static struct AVBufferRef *vdpau_create_standalone(struct mpv_global *global,
return NULL;
}
vdp->hwctx.emulated = mp_vdpau_guess_if_emulated(vdp);
vdp->close_display = true;
return vdp->hwctx.av_device_ref;
}