From 543f6df2a6c438809b93815f2752a9f56ce9c558 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Wed, 10 Feb 2016 01:09:51 -0800 Subject: dxva2: remove unused structure members --- video/decode/dxva2.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'video') diff --git a/video/decode/dxva2.c b/video/decode/dxva2.c index a81fc54005..8cdda9f11b 100644 --- a/video/decode/dxva2.c +++ b/video/decode/dxva2.c @@ -116,7 +116,6 @@ typedef struct DXVA2Context { IDirectXVideoDecoderService *decoder_service; IDirectXVideoDecoder *decoder; - GUID decoder_guid; DXVA2_ConfigPictureDecode decoder_config; LPDIRECT3DSURFACE9 *surfaces; @@ -125,8 +124,6 @@ typedef struct DXVA2Context { uint64_t surface_age; struct mp_image_pool *sw_pool; - - struct dxva_context *av_dxva_ctx; } DXVA2Context; typedef struct DXVA2SurfaceWrapper { @@ -605,7 +602,6 @@ static int dxva2_create_decoder(struct lavc_ctx *s, int w, int h, goto fail; } - ctx->decoder_guid = device_guid; ctx->decoder_config = config; dxva_ctx->cfg = &ctx->decoder_config; @@ -613,7 +609,7 @@ static int dxva2_create_decoder(struct lavc_ctx *s, int w, int h, dxva_ctx->surface = ctx->surfaces; dxva_ctx->surface_count = ctx->num_surfaces; - if (IsEqualGUID(&ctx->decoder_guid, &DXVADDI_Intel_ModeH264_E)) + if (IsEqualGUID(&device_guid, &DXVADDI_Intel_ModeH264_E)) dxva_ctx->workaround |= FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO; return 0; -- cgit v1.2.3