mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
shout2: 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>
This commit is contained in:
parent
e63ab37431
commit
31c1e8ca13
2 changed files with 12 additions and 7 deletions
|
@ -151,6 +151,15 @@ gst_shout2send_protocol_get_type (void)
|
|||
#define gst_shout2send_parent_class parent_class
|
||||
G_DEFINE_TYPE_WITH_CODE (GstShout2send, gst_shout2send, GST_TYPE_BASE_SINK,
|
||||
G_IMPLEMENT_INTERFACE (GST_TYPE_TAG_SETTER, NULL));
|
||||
#ifdef ENABLE_NLS
|
||||
#define _do_init \
|
||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);\
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
#else /* ENABLE_NLS */
|
||||
#define _do_init
|
||||
#endif
|
||||
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (shout2send, "shout2send", GST_RANK_NONE,
|
||||
GST_TYPE_SHOUT2SEND, _do_init);
|
||||
|
||||
static void
|
||||
gst_shout2send_class_init (GstShout2sendClass * klass)
|
||||
|
@ -949,13 +958,7 @@ gst_shout2send_setcaps (GstBaseSink * basesink, GstCaps * caps)
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
#ifdef ENABLE_NLS
|
||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
#endif /* ENABLE_NLS */
|
||||
|
||||
return gst_element_register (plugin, "shout2send", GST_RANK_NONE,
|
||||
GST_TYPE_SHOUT2SEND);
|
||||
return GST_ELEMENT_REGISTER (shout2send, plugin);
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
|
|
|
@ -74,6 +74,8 @@ struct _GstShout2send {
|
|||
GstTagList* tags;
|
||||
};
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (shout2send);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_SHOUT2SEND_H__ */
|
||||
|
|
Loading…
Reference in a new issue