From 55771746684e964ff60131c5db9674c4219e76c8 Mon Sep 17 00:00:00 2001 From: sergey radionov Date: Tue, 11 Feb 2025 11:03:18 +0700 Subject: [PATCH] v4l2: allocator: G_TYPE defined for GstV4l2MemoryGroup This is needed to pass the GstV4l2MemoryGroup structure through a glib signal. Part-of: --- subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c | 1 + subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c index aa54b9a0d7..09ced2bbc0 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c @@ -43,6 +43,7 @@ #define gst_v4l2_allocator_parent_class parent_class G_DEFINE_TYPE (GstV4l2Allocator, gst_v4l2_allocator, GST_TYPE_ALLOCATOR); +G_DEFINE_POINTER_TYPE (GstV4l2MemoryGroup, gst_v4l2_memory_group); GST_DEBUG_CATEGORY_STATIC (v4l2allocator_debug); #define GST_CAT_DEFAULT v4l2allocator_debug diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.h b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.h index eb515245a1..5c70376145 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.h +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.h @@ -29,6 +29,7 @@ G_BEGIN_DECLS +#define GST_TYPE_V4L2_MEMORY_GROUP (gst_v4l2_memory_group_get_type()) #define GST_TYPE_V4L2_ALLOCATOR (gst_v4l2_allocator_get_type()) #define GST_IS_V4L2_ALLOCATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_V4L2_ALLOCATOR)) #define GST_IS_V4L2_ALLOCATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_V4L2_ALLOCATOR)) @@ -111,6 +112,8 @@ struct _GstV4l2AllocatorClass { GstAllocatorClass parent_class; }; +GType gst_v4l2_memory_group_get_type(void); + GType gst_v4l2_allocator_get_type(void); gboolean gst_is_v4l2_memory (GstMemory * mem);