[vlc-devel] [PATCH 1/3] va_surface: only the va_surface handler needs to know what's inside

Steve Lhomme robux4 at videolabs.io
Fri Jun 23 17:34:59 CEST 2017


---
 modules/codec/avcodec/va_surface.c          | 4 ++++
 modules/codec/avcodec/va_surface_internal.h | 4 +---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/codec/avcodec/va_surface.c b/modules/codec/avcodec/va_surface.c
index a4b384c5e0..9110d96e57 100644
--- a/modules/codec/avcodec/va_surface.c
+++ b/modules/codec/avcodec/va_surface.c
@@ -41,6 +41,10 @@ struct picture_sys_t {
 
 #include "avcodec.h"
 
+struct vlc_va_surface_t {
+    atomic_uintptr_t     refcount;
+};
+
 static void DestroyVideoDecoder(vlc_va_t *va, va_pool_t *va_pool)
 {
     for (unsigned i = 0; i < va_pool->surface_count; i++)
diff --git a/modules/codec/avcodec/va_surface_internal.h b/modules/codec/avcodec/va_surface_internal.h
index da2dc4b745..ee83dcc322 100644
--- a/modules/codec/avcodec/va_surface_internal.h
+++ b/modules/codec/avcodec/va_surface_internal.h
@@ -35,9 +35,7 @@
 #include <stdatomic.h>
 
 /* */
-typedef struct vlc_va_surface_t {
-    atomic_uintptr_t     refcount;
-} vlc_va_surface_t;
+typedef struct vlc_va_surface_t vlc_va_surface_t;
 
 #define MAX_SURFACE_COUNT (64)
 typedef struct
-- 
2.12.1



More information about the vlc-devel mailing list