voamrwbenc: 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
ea63ed5dcb
commit
9de8af0ac1
@ -26,11 +26,9 @@
|
|||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
return gst_element_register (plugin, "voamrwbenc",
|
return GST_ELEMENT_REGISTER (voamrwbenc, plugin);
|
||||||
GST_RANK_SECONDARY, GST_TYPE_VOAMRWBENC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
voamrwbenc,
|
voamrwbenc,
|
||||||
|
@ -115,6 +115,8 @@ static GstFlowReturn gst_voamrwbenc_handle_frame (GstAudioEncoder * enc,
|
|||||||
GstBuffer * in_buf);
|
GstBuffer * in_buf);
|
||||||
|
|
||||||
G_DEFINE_TYPE (GstVoAmrWbEnc, gst_voamrwbenc, GST_TYPE_AUDIO_ENCODER);
|
G_DEFINE_TYPE (GstVoAmrWbEnc, gst_voamrwbenc, GST_TYPE_AUDIO_ENCODER);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (voamrwbenc, "voamrwbenc",
|
||||||
|
GST_RANK_SECONDARY, GST_TYPE_VOAMRWBENC);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_voamrwbenc_set_property (GObject * object, guint prop_id,
|
gst_voamrwbenc_set_property (GObject * object, guint prop_id,
|
||||||
|
@ -58,6 +58,8 @@ struct _GstVoAmrWbEncClass {
|
|||||||
|
|
||||||
GType gst_voamrwbenc_get_type (void);
|
GType gst_voamrwbenc_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (voamrwbenc);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_VOAMRWBENC_H__ */
|
#endif /* __GST_VOAMRWBENC_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user