adding custom plugin for gstreamer pipeline for android

Mailing List SVR lists at svrinformatica.it
Sun Sep 15 08:34:51 PDT 2013


Il 15/09/2013 16:29, yoyosuper8 ha scritto:
> 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?

check the value returned from gst_plugin_register_static, are you 
calling this method after gst_init?

Nicola

>
> 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.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>



More information about the gstreamer-devel mailing list