what is the GstType that's passed to the gst_element_register() call for plugin_init?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hello there,

I am doing my plugin and I have a question regarding the last parameter in the gst_element_register() call, which is the GstType.
In the base plugin package, I see normally it's defined in the header file to a function, but for some  plugins this function is there in the package, for others it's not.

For example, gst/gdp/gstgdpdepay.c used GST_TYPE_GDP_DEPAY: gst_element_register (plugin, "gdpdepay", GST_RANK_NONE, GST_TYPE_GDP_DEPAY)
And gstdgpdepay.h has this define: #define GST_TYPE_GDP_DEPAY  (gst_gdp_depay_get_type())
However I can't find this gst_gdp_depay_get_type() function implementation in the whole package. Many of other plugins have the same thing.

One example on the other case is in gst/tcp/gsttcpplugin.c, which used type GST_TYPE_TCP_CLIENT_SINK, and this can be traced to function gst_tcp_client_sink_get_type(), which is implemented in gsttcpclientsink.c.

So I wonder which is the way I should go, is the unimplemented function hidden somewhere? Why it won't cause compile problem?



Thanks,
Feng


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-embedded/attachments/20100913/026f4d62/attachment.htm>


[Index of Archives]     [Linux Embedded]     [Linux ARM Kernel]     [Linux for ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux Media]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux