[vlc-devel] [PATCH 07/17] va_surface: remove the unused decoderSurface
Steve Lhomme
robux4 at videolabs.io
Tue Jun 20 17:45:39 CEST 2017
---
modules/codec/avcodec/d3d11va.c | 1 -
modules/codec/avcodec/dxva2.c | 1 -
modules/codec/avcodec/va_surface.h | 1 -
3 files changed, 3 deletions(-)
diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 3026885e0b..32f7c53465 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -261,7 +261,6 @@ static picture_context_t* NewSurfacePicContext(vlc_va_t *va, vlc_va_surface_t *v
* CreatePicContext(), undo one of them otherwise we need an extra release
* when the pool is emptied */
ReleasePictureSys(&pic_ctx->picsys);
- va_surface->decoderSurface = surface;
return &pic_ctx->s;
}
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 5e0f203732..fc186aa13f 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -224,7 +224,6 @@ static picture_context_t* NewSurfacePicContext(vlc_va_t *va, vlc_va_surface_t *v
struct va_pic_context *pic_ctx = CreatePicContext(va_surface, surface);
if (unlikely(pic_ctx==NULL))
return NULL;
- va_surface->decoderSurface = surface;
return &pic_ctx->s;
}
diff --git a/modules/codec/avcodec/va_surface.h b/modules/codec/avcodec/va_surface.h
index b89b420403..2d4add1306 100644
--- a/modules/codec/avcodec/va_surface.h
+++ b/modules/codec/avcodec/va_surface.h
@@ -35,7 +35,6 @@
/* */
struct vlc_va_surface_t {
atomic_uintptr_t refcount;
- D3D_DecoderSurface *decoderSurface;
};
#endif /* AVCODEC_VA_SURFACE_H */
--
2.12.1
More information about the vlc-devel
mailing list