[gst-devel] register Plugin

Vikas Patel Vikas.Patel at imgtec.com
Thu Jun 14 13:54:07 CEST 2007


I have done the same thing but why it's not coming in Plugin list by
executing of gst-inspect function. 

Where am I wrong?

Regards

Vikas

 

________________________________

From: Sanjay Gupta [mailto:sanjayg417 at gmail.com] 
Sent: Thursday, June 14, 2007 4:47 PM
To: Vikas Patel
Cc: gstreamer-devel at lists.sourceforge.net
Subject: Re: [gst-devel] register Plugin

 

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

-
This message is subject to Imagination Technologies' e-mail terms: http://www.imgtec.com/e-mail.htm
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20070614/a5de62dd/attachment.htm>


More information about the gstreamer-devel mailing list