va: Don't expose internal classes.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 30 Mar 2022 05:03:59 +0000 (07:03 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 30 Mar 2022 09:36:03 +0000 (11:36 +0200)
VA allocators and pools classes don't need to be exposed as external
symbols.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2070>

subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.c
subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.c
subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.h
subprojects/gst-plugins-bad/gst-libs/gst/va/va_fwd.h

index c439a64..8d380e8 100644 (file)
@@ -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;
index b394a1f..8c985c7 100644 (file)
@@ -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;
index 5d0ae37..6f096b2 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <gst/gst.h>
 #include <gst/va/gstva.h>
-#include <gst/va/va_fwd.h>
 
 G_BEGIN_DECLS
 
index b159728..0b1b8cb 100644 (file)
@@ -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