summaryrefslogtreecommitdiff
path: root/ext/gdk_pixbuf/gstgdkpixbufdec.c
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2021-02-12 08:57:55 +0100
committerStéphane Cerveau <scerveau@collabora.com>2021-03-29 12:45:21 +0200
commitf86147cb6d19ab998376871f59c33e0d348a7b9a (patch)
tree1e721b861dae7b050953949b4c4f57a5c34b4284 /ext/gdk_pixbuf/gstgdkpixbufdec.c
parente4d26e69d3f68a5ca2f93092dc3589af0fcf9336 (diff)
gdk_pixbuf: allow per feature registration
Split plugin into features including dynamic types which can be indiviually registered during a static build. More details here: https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199 https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/876>
Diffstat (limited to 'ext/gdk_pixbuf/gstgdkpixbufdec.c')
-rw-r--r--ext/gdk_pixbuf/gstgdkpixbufdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/gdk_pixbuf/gstgdkpixbufdec.c b/ext/gdk_pixbuf/gstgdkpixbufdec.c
index dbcac203e..5482998c0 100644
--- a/ext/gdk_pixbuf/gstgdkpixbufdec.c
+++ b/ext/gdk_pixbuf/gstgdkpixbufdec.c
@@ -27,6 +27,7 @@
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <string.h>
+#include "gstgdkpixbufelements.h"
#include "gstgdkpixbufdec.h"
GST_DEBUG_CATEGORY_STATIC (gdkpixbufdec_debug);
@@ -74,6 +75,9 @@ static gboolean gst_gdk_pixbuf_dec_sink_event (GstPad * pad, GstObject * parent,
#define gst_gdk_pixbuf_dec_parent_class parent_class
G_DEFINE_TYPE (GstGdkPixbufDec, gst_gdk_pixbuf_dec, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (gdkpixbufdec, "gdkpixbufdec",
+ GST_RANK_SECONDARY, GST_TYPE_GDK_PIXBUF_DEC,
+ gdk_pixbuf_element_init (plugin));
static gboolean
gst_gdk_pixbuf_dec_sink_setcaps (GstGdkPixbufDec * filter, GstCaps * caps)