[gst-devel] register Plugin

Sanjay Gupta sanjayg417 at gmail.com
Thu Jun 14 13:17:03 CEST 2007


On 6/14/07, Vikas Patel <Vikas.Patel at imgtec.com> wrote:
>
>  *Hi,*
>
> Can anybody let me know, How to register Plugin with Gstreamer.
>
> Thanks in advance
>
>
>
> *Regards*
>
> *Vikas*
>
In the plugin template ,in function plugin_init(), gst_element_register()
function is used to register elements in your plugin. See the following
piece of code from plugin template.
------------------
static gboolean plugin_init (GstPlugin * plugin)
{
  return gst_element_register (plugin, "myelement",
      GST_RANK_NONE, GST_TYPE_PLUGIN_TEMPLATE);
}

GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
    GST_VERSION_MINOR,
    "plugin",
    "Template plugin",
    plugin_init, VERSION, "LGPL", "GStreamer", "http://gstreamer.net/")

------------------------
Also you have to run gst-inspect-0.10 command to add your plugin information
in gstreamer registry file.

Regards,
Sanjay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20070614/4c30e11c/attachment.htm>


More information about the gstreamer-devel mailing list