How to define get_type function in gstreamer plugin

Yogesh Tyagi yogesh.bit2006 at gmail.com
Thu Aug 22 08:19:58 PDT 2013


Hi,

I have added a get_type function in one gstreamer plugin:

GType ts_pmt_info_get_type (void);

#define TS_TYPE_PMT_INFO (ts_pmt_info_get_type ())
#define TS_IS_PMT_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),
TS_TYPE_PMT_INFO))
#define TS_PMT_INFO(obj)
(G_TYPE_CHECK_INSTANCE_CAST((obj),TS_TYPE_PMT_INFO, TsPmtInfo))


But when I try to inspect this plugin using gst-inspect, gstreamer fails to
load this plugin due to undefined symbol.

# gst-inspect /usr/lib/libgstts.so

(gst-inspect-0.10:3461): GStreamer-WARNING **: External plugin loader
failed. This most likely means that the plugin loader helper binary was not
found or could not be run. If you are running an uninstalled GStreamer
setup, you might need to update your gst-uninstalled script so that the
GST_PLUGIN_SCANNER environment variable gets set.

(gst-inspect-0.10:3461): GStreamer-WARNING **: Failed to load plugin
'/usr/lib/libgstts.so': /usr/lib/libgstts.so: undefined symbol:
ts_pmt_info_get_type

(gst-inspect-0.10:3461): GStreamer-WARNING **: Failed to load plugin
'/usr/lib/libgstts.so': /usr/lib/libgstts.so: undefined symbol:
ts_pmt_info_get_type
Could not load plugin file: Opening module failed: /usr/lib/libgstts.so:
undefined symbol: ts_pmt_info_get_type


I have checked other get_type functions in this plugin and they have been
defined in the similar way, I don't know why I am getting undefined symbol
for this function.

Am I missing something? Please suggest.

Thanks,
Yogesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130822/40e18786/attachment.html>


More information about the gstreamer-devel mailing list