[gst-devel] [gst 0.10] problem with registering an element
Vincent Torri
Vincent.Torri at iecn.u-nancy.fr
Tue Mar 28 23:17:01 CEST 2006
Hey,
i've written a plugin. I would like it to be registered. In the PWG, i've
seen that we should do something like:
static void
gst_my_filter_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
static GstElementDetails my_filter_details = {
[..]
};
[..]
gst_element_class_set_details (element_class, &my_filter_details);
}
And in some elements (fakesink, for example), there is :
#define _do_init(bla) \
GST_DEBUG_CATEGORY_INIT (gst_fake_sink_debug, "fakesink", 0, "fakesink
element");
GST_BOILERPLATE_FULL (GstFakeSink, gst_fake_sink, GstBaseSink,
GST_TYPE_BASE_SINK, _do_init);
I've only tried the way that fakesink uses. Is it sufficient ? I guess so,
as fakesink is registered. But then, why my plugin is not registered ? Is
there something else to do ? Must I use what is written in the PWG ?
thank you
Vincent
More information about the gstreamer-devel
mailing list