From 602d249847a7f821d0b77670a10a0e3f96b72979 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 30 Mar 2022 07:03:59 +0200 Subject: [PATCH] va: Don't expose internal classes. VA allocators and pools classes don't need to be exposed as external symbols. Part-of: --- subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.c | 6 ++++++ subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.c | 3 +++ subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.h | 1 - subprojects/gst-plugins-bad/gst-libs/gst/va/va_fwd.h | 9 --------- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.c b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.c index c439a64..8d380e8 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.c @@ -236,6 +236,9 @@ gst_va_memory_pool_surface_inc (GstVaMemoryPool * self) /*=========================== GstVaDmabufAllocator ===========================*/ +typedef struct _GstVaDmabufAllocator GstVaDmabufAllocator; +typedef struct _GstVaDmabufAllocatorClass GstVaDmabufAllocatorClass; + struct _GstVaDmabufAllocator { GstDmaBufAllocator parent; @@ -914,6 +917,9 @@ gst_va_dmabuf_memories_setup (GstVaDisplay * display, GstVideoInfo * info, /*===================== GstVaAllocator / GstVaMemory =========================*/ +typedef struct _GstVaAllocator GstVaAllocator; +typedef struct _GstVaAllocatorClass GstVaAllocatorClass; + struct _GstVaAllocator { GstAllocator parent; diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.c b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.c index b394a1f..8c985c7 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.c @@ -27,6 +27,9 @@ GST_DEBUG_CATEGORY_STATIC (gst_va_pool_debug); #define GST_CAT_DEFAULT gst_va_pool_debug +typedef struct _GstVaPool GstVaPool; +typedef struct _GstVaPoolClass GstVaPoolClass; + struct _GstVaPool { GstBufferPool parent; diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.h b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.h index 5d0ae37..6f096b2 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.h @@ -22,7 +22,6 @@ #include #include -#include G_BEGIN_DECLS diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/va/va_fwd.h b/subprojects/gst-plugins-bad/gst-libs/gst/va/va_fwd.h index b159728..0b1b8cb 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/va/va_fwd.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/va/va_fwd.h @@ -32,13 +32,4 @@ typedef struct _GstVaDisplayDrmClass GstVaDisplayDrmClass; typedef struct _GstVaDisplayWrapped GstVaDisplayWrapped; typedef struct _GstVaDisplayWrappedClass GstVaDisplayWrappedClass; -typedef struct _GstVaAllocator GstVaAllocator; -typedef struct _GstVaAllocatorClass GstVaAllocatorClass; - -typedef struct _GstVaDmabufAllocator GstVaDmabufAllocator; -typedef struct _GstVaDmabufAllocatorClass GstVaDmabufAllocatorClass; - -typedef struct _GstVaPool GstVaPool; -typedef struct _GstVaPoolClass GstVaPoolClass; - G_END_DECLS -- 2.7.4