summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2021-02-25 09:45:10 +0100
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-03-23 14:19:17 +0000
commit1fd8b4a6b7d30906ef930c8c711a15a480e68fbe (patch)
treea9d9f42b2a59b318dbe1de75a200f2410a10e8ca /ext
parentf4c998978238408485e33086b37c205eb2c70ef3 (diff)
downloadgstreamer-plugins-bad-1fd8b4a6b7d30906ef930c8c711a15a480e68fbe.tar.gz
wpe: 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-bad/-/merge_requests/2038>
Diffstat (limited to 'ext')
-rw-r--r--ext/wpe/gstwpesrc.cpp10
-rw-r--r--ext/wpe/gstwpesrc.h2
2 files changed, 8 insertions, 4 deletions
diff --git a/ext/wpe/gstwpesrc.cpp b/ext/wpe/gstwpesrc.cpp
index ebdeae652..fa1a1ca4a 100644
--- a/ext/wpe/gstwpesrc.cpp
+++ b/ext/wpe/gstwpesrc.cpp
@@ -142,7 +142,10 @@ static void gst_wpe_src_uri_handler_init (gpointer iface, gpointer data);
#define gst_wpe_src_parent_class parent_class
G_DEFINE_TYPE_WITH_CODE (GstWpeSrc, gst_wpe_src, GST_TYPE_GL_BASE_SRC,
- G_IMPLEMENT_INTERFACE (GST_TYPE_URI_HANDLER, gst_wpe_src_uri_handler_init));
+ G_IMPLEMENT_INTERFACE (GST_TYPE_URI_HANDLER, gst_wpe_src_uri_handler_init);
+ GST_DEBUG_CATEGORY_INIT (wpe_src_debug, "wpesrc", 0, "WPE Source"););
+GST_ELEMENT_REGISTER_DEFINE (wpesrc, "wpesrc", GST_RANK_NONE,
+ GST_TYPE_WPE_SRC);
#if ENABLE_SHM_BUFFER_SUPPORT
#define WPE_RAW_CAPS "; video/x-raw, " \
@@ -767,10 +770,9 @@ gst_wpe_src_class_init (GstWpeSrcClass * klass)
static gboolean
plugin_init (GstPlugin * plugin)
{
- GST_DEBUG_CATEGORY_INIT (wpe_src_debug, "wpesrc", 0, "WPE Source");
- return gst_element_register (plugin, "wpesrc", GST_RANK_NONE,
- GST_TYPE_WPE_SRC);
+
+ return GST_ELEMENT_REGISTER (wpesrc, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR,
diff --git a/ext/wpe/gstwpesrc.h b/ext/wpe/gstwpesrc.h
index 81e87baf4..1368077eb 100644
--- a/ext/wpe/gstwpesrc.h
+++ b/ext/wpe/gstwpesrc.h
@@ -41,6 +41,8 @@ struct _GstWpeSrcClass
GType gst_wpe_src_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (wpesrc);
+
void gst_wpe_src_configure_web_view(GstWpeSrc * src, WebKitWebView * webview);
G_END_DECLS