adding custom plugin for gstreamer pipeline for android
Andoni Morales
ylatuya at gmail.com
Tue Sep 17 09:11:02 PDT 2013
2013/9/17 yoyosuper8 <yoyosuper8 at yahoo.com>
> What do you mean embed the source code in the project? Here is my setup: I
> have an android project and within the android project, there is a jni
> folder which contains the following:
>
> /jni/Android.mk
> /jni/tutorial-3.c
> /jni/plugin/myplugin.mk
> /jni/plugin/myplugin.h
> /jni/plugin/myplugin.c
>
What you are doing embedding the source code in the project, the other
option is creating a static library.
In this case you only need to call myplugin_init(NULL) after calling
gst_init.
Andoni
>
> The code for myplugin.h and .c file is from the gstreamer plugin template.
> I've attached those two files. In the myplugin.c file, the myplugin_init
> method calls the gst_element_register and there is also a
> GST_PLUGIN_DEFINE() method defining the plugin. However, when I add the
> "myplugin" in the pipeline in tutorial-3.c it doesn't get recognized.
> I've uploaded all of the files listed above.
> What am I missing?
>
> Any help would be really appreciated.
>
> Thank you
>
> Andy
>
> gstplugin.h
> <http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/gstplugin.h>
> gstplugin.c
> <http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/gstplugin.c>
> tutorial-3.c
> <http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/tutorial-3.c>
> Android.mk
> <http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/Android.mk>
> myplugin.mk
> <http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/myplugin.mk>
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/adding-custom-plugin-for-gstreamer-pipeline-for-android-tp4661958p4662049.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
>
--
Andoni Morales Alastruey
LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130917/2eb54d6e/attachment.html>
More information about the gstreamer-devel
mailing list