vlc | branch: master | Steve Lhomme <[email protected]> | Fri Jun 23 14:38:05 2017 +0200| [c5af8b55b99b1572ab095d8daf07aaa232b1ad68] | committer: Jean-Baptiste Kempf
va_surface: only the va_surface handler needs to know what's inside Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c5af8b55b99b1572ab095d8daf07aaa232b1ad68 --- 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 8e5ae64658..dcd512527f 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 c7a649b167..7a566dbee8 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 _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
