summaryrefslogtreecommitdiff
path: root/gst/timecode/plugin.c
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2021-02-25 15:22:15 +0100
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-04-11 16:16:55 +0000
commit891be511057dbcdf1f38740e55cbd376c4b25894 (patch)
treeb077e8cd0b584ebe2a10950ef2398ab3f60b48b4 /gst/timecode/plugin.c
parent7f60138ef68e2a1fef8ccd4ff3710dfccd243314 (diff)
downloadgstreamer-plugins-bad-891be511057dbcdf1f38740e55cbd376c4b25894.tar.gz
gst-plugins: 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/2110>
Diffstat (limited to 'gst/timecode/plugin.c')
-rw-r--r--gst/timecode/plugin.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gst/timecode/plugin.c b/gst/timecode/plugin.c
index 245f3aab2..59dc288ac 100644
--- a/gst/timecode/plugin.c
+++ b/gst/timecode/plugin.c
@@ -30,13 +30,10 @@
static gboolean
plugin_init (GstPlugin * plugin)
{
- gboolean ret;
+ gboolean ret = FALSE;
- ret = gst_element_register (plugin, "timecodestamper", GST_RANK_NONE,
- GST_TYPE_TIME_CODE_STAMPER);
-
- ret &= gst_element_register (plugin, "avwait", GST_RANK_NONE,
- GST_TYPE_AVWAIT);
+ ret |= GST_ELEMENT_REGISTER (timecodestamper, plugin);
+ ret |= GST_ELEMENT_REGISTER (avwait, plugin);
return ret;
}