mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
musepack: 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:
parent
d5e5ced7b7
commit
0d125a2e8a
2 changed files with 9 additions and 6 deletions
|
@ -74,8 +74,12 @@ static GstStateChangeReturn
|
||||||
gst_musepackdec_change_state (GstElement * element, GstStateChange transition);
|
gst_musepackdec_change_state (GstElement * element, GstStateChange transition);
|
||||||
|
|
||||||
#define parent_class gst_musepackdec_parent_class
|
#define parent_class gst_musepackdec_parent_class
|
||||||
G_DEFINE_TYPE (GstMusepackDec, gst_musepackdec, GST_TYPE_ELEMENT);
|
G_DEFINE_TYPE_WITH_CODE (GstMusepackDec, gst_musepackdec, GST_TYPE_ELEMENT,
|
||||||
|
GST_DEBUG_CATEGORY_INIT (musepackdec_debug, "musepackdec", 0,
|
||||||
|
"mpc decoder");
|
||||||
|
);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (musepackdec, "musepackdec",
|
||||||
|
GST_RANK_PRIMARY, GST_TYPE_MUSEPACK_DEC);
|
||||||
static void
|
static void
|
||||||
gst_musepackdec_class_init (GstMusepackDecClass * klass)
|
gst_musepackdec_class_init (GstMusepackDecClass * klass)
|
||||||
{
|
{
|
||||||
|
@ -628,10 +632,7 @@ gst_musepackdec_change_state (GstElement * element, GstStateChange transition)
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
GST_DEBUG_CATEGORY_INIT (musepackdec_debug, "musepackdec", 0, "mpc decoder");
|
return GST_ELEMENT_REGISTER (musepackdec, plugin);
|
||||||
|
|
||||||
return gst_element_register (plugin, "musepackdec",
|
|
||||||
GST_RANK_PRIMARY, GST_TYPE_MUSEPACK_DEC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -61,6 +61,8 @@ typedef struct _GstMusepackDecClass {
|
||||||
|
|
||||||
GType gst_musepackdec_get_type (void);
|
GType gst_musepackdec_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (musepackdec);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_MUSEPACK_DEC_H__ */
|
#endif /* __GST_MUSEPACK_DEC_H__ */
|
||||||
|
|
Loading…
Reference in a new issue