[vlc-commits] va_surface: remove the unused decoderSurface

Steve Lhomme git at videolan.org
Thu Jun 22 17:26:42 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri Jun 16 17:53:03 2017 +0200| [bbf96f32f5fc903d459f24ec5349d03b101a5648] | committer: Jean-Baptiste Kempf

va_surface: remove the unused decoderSurface

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bbf96f32f5fc903d459f24ec5349d03b101a5648
---

 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 dc40fa98f1..e4368a908e 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -262,7 +262,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 9ef29ce803..523d847a15 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 ccd8602588..2f10311a1c 100644
--- a/modules/codec/avcodec/va_surface.h
+++ b/modules/codec/avcodec/va_surface.h
@@ -34,7 +34,6 @@
 /* */
 struct vlc_va_surface_t {
     atomic_uintptr_t     refcount;
-    D3D_DecoderSurface  *decoderSurface;
 };
 
 #endif /* AVCODEC_VA_SURFACE_H */



More information about the vlc-commits mailing list