<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/17 yoyosuper8 <span dir="ltr"><<a href="mailto:yoyosuper8@yahoo.com" target="_blank">yoyosuper8@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

What do you mean embed the source code in the project? Here is my setup: I<br>
have an android project and within the android project, there is a jni<br>
folder which contains the following:<br>
<br>
/jni/Android.mk<br>
/jni/tutorial-3.c<br>
/jni/plugin/<a href="http://myplugin.mk" target="_blank">myplugin.mk</a><br>
/jni/plugin/myplugin.h<br>
/jni/plugin/myplugin.c<br></blockquote><div><br></div><div>What you are doing embedding the source code in the project, the other option is creating a static library.<br></div><div>In this case you only need to call myplugin_init(NULL) after calling gst_init.<br>

<br></div><div>Andoni<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The code for myplugin.h and .c file is from the gstreamer plugin template.<br>
I've attached those two files. In the myplugin.c file, the myplugin_init<br>
method calls the gst_element_register and there is also a<br>
GST_PLUGIN_DEFINE() method defining the plugin. However, when I add the<br>
"myplugin" in the pipeline in tutorial-3.c it doesn't get recognized.<br>
I've uploaded all of the files listed above.<br>
What am I missing?<br>
<br>
Any help would be really appreciated.<br>
<br>
Thank you<br>
<br>
Andy<br>
<br>
gstplugin.h<br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/gstplugin.h" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/gstplugin.h</a>><br>
gstplugin.c<br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/gstplugin.c" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/gstplugin.c</a>><br>
tutorial-3.c<br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/tutorial-3.c" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/tutorial-3.c</a>><br>
Android.mk<br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/Android.mk" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/Android.mk</a>><br>
<a href="http://myplugin.mk" target="_blank">myplugin.mk</a><br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/myplugin.mk" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/n4662049/myplugin.mk</a>><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/adding-custom-plugin-for-gstreamer-pipeline-for-android-tp4661958p4662049.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/adding-custom-plugin-for-gstreamer-pipeline-for-android-tp4661958p4662049.html</a><br>


<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Andoni Morales Alastruey<br><br>LongoMatch:The Digital Coach<br><a href="http://www.longomatch.ylatuya.es">http://www.longomatch.ylatuya.es</a>
</div></div>