mdns: 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>
This commit is contained in:
Stéphane Cerveau 2021-02-18 09:56:08 +01:00 committed by GStreamer Marge Bot
parent 58cf5d9e62
commit ce5100ef87

View file

@ -23,14 +23,14 @@
#include "gstmicrodnsdevice.h"
GST_DEVICE_PROVIDER_REGISTER_DECLARE (microdnsdeviceprovider);
GST_DEVICE_PROVIDER_REGISTER_DEFINE (microdnsdeviceprovider,
"microdnsdeviceprovider", GST_RANK_PRIMARY, GST_TYPE_MDNS_DEVICE_PROVIDER);
static gboolean
plugin_init (GstPlugin * plugin)
{
if (!gst_device_provider_register (plugin, "microdnsdeviceprovider",
GST_RANK_PRIMARY, GST_TYPE_MDNS_DEVICE_PROVIDER))
return FALSE;
return TRUE;
return GST_DEVICE_PROVIDER_REGISTER (microdnsdeviceprovider, plugin);;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,