adding custom plugin for gstreamer pipeline for android

yoyosuper8 yoyosuper8 at yahoo.com
Sun Sep 15 07:29:05 PDT 2013


Hey Nicola,

So I added the gst_plugin_register_static() method after the testplugin_init
in my testplugin.c file.
Now I want to use this plugin in the gstreamer android tutorial 3 project.
The c file described in the tutorial is tutorial-3.c and in there I want to
use the plugin which I'm naming "testplugin", so what I did was just added
"testplugin" in the pipeline. However, when the app is launched, it cannot
recognize the plugin saying "cannot recognize element".

Here is how I did things. In the testplugin.c file I added the method as
such after the testplugin_init():

static gboolean
testplugin_init (GstPlugin *plugin)
{
  return gst_element_register (plugin, "testplugin",
			       GST_RANK_NONE,
			       GST_TYPE_MY_FILTER);
}

gst_plugin_register_static (GST_VERSION_MAJOR,
                                     GST_VERSION_MINOR,
                                     "testplugin",
                                     "My first plugin",
                                     testplugin_init,
                                     "1.0",
                                     "LGPL",
                                     "GStreamer",
                                     "testplugin.package",
                                     "http://gstreamer.net/");


This compiles, but still not working as the plugin is not recognized. What
am I doing wrong?

Thanks
Andy




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/adding-custom-plugin-for-gstreamer-pipeline-for-android-tp4661958p4662008.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list