registering a plugin
jyoti kulkarni
jyotimk029 at gmail.com
Thu Sep 12 02:32:38 PDT 2013
Hi jose,
I have tried with --gst-plugin-path, as below:
gst-launch-1.0
--gst-plugin-path=/home/jyoti/gst_plugin/gst-template-master/gst-plugin/src/.libs/
myown_plugin
but still i get below error:
(gst-plugin-scanner:27675): GStreamer-WARNING **: Failed to load plugin
'/home/jyoti/gst_plugin/gst-template-master/gst-plugin/src/.libs/libgstplugin.so':
/home/jyoti/gst_plugin/gst-template-master/gst-plugin/src/.libs/libgstplugin.so:
undefined symbol: gst_my_filesink_get_type
ERROR: pipeline could not be constructed: no element "myown_plugin".
Please help..
Regards
Jyoti
On Thu, Sep 12, 2013 at 2:02 PM, Jose Antonio Santos Cadenas <
santoscadenas at gmail.com> wrote:
> Try using environment variable GST_PLUGIN_PATH or --gst-plugin-path
> command line paratemer to indicate gstreamer where should it look for
> plugins.
>
>
> 2013/9/12 jyoti kulkarni <jyotimk029 at gmail.com>
>
>> Hello All,
>>
>> I have written a plugin (similar to filesink), using make element tool.
>> and it compiles fine(using ./autogen.sh), but when i launch it with
>> gat-launch i get no such element error, here is how i register my plugin in
>> .c file generated by make element tool.
>>
>> static gboolean
>> myown_plugin_init (GstPlugin * myown_plugin)
>> {
>> /* debug category for fltering log messages
>> *
>> * exchange the string 'Template myfilter' with your description
>> */
>> _do_init
>>
>> return gst_element_register (myown_plugin, "myown_plugin",
>> GST_RANK_NONE,
>> GST_TYPE_FILE_SINK);
>> }
>>
>> GST_PLUGIN_DEFINE (
>> GST_VERSION_MAJOR,
>> GST_VERSION_MINOR,
>> myown_plugin,
>> "Template myown_plugin",
>> myown_plugin_init,
>> VERSION,
>> "LGPL",
>> "GStreamer",
>> "http://gstreamer.net/"
>> )
>>
>> where _do_init is:
>>
>> GST_DEBUG_CATEGORY_INIT (gst_myown_plugin_debug, "myown_plugin", 0,
>> "myown_plugin element");
>>
>> Please help me with the concern.
>>
>> Thanks
>> Jyoti
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130912/63df2988/attachment.html>
More information about the gstreamer-devel
mailing list