registering a plugin

Wonchul Lee chul0812 at gmail.com
Thu Sep 12 07:34:55 PDT 2013


I had a similar situation with you.
At that time, I did 'make distclean' at the root of package directory.
Then make it again, It worked.

If another things are fine, I think that it has a worth to do.


2013/9/12 Jose Antonio Santos Cadenas <santoscadenas at gmail.com>

> It seems that there is something wrong on your plugin you have not define
> the function gst_my_filesink_get_type. Maybe you have changed your type
> name and forgot to change it somewhere.
>
> You use the type as GST_TYPE_FILE_SINK but regarding the missing function
> your type name should be GST_TYPE_MY_FILESINK, check that the names are
> coherent along all the files.
>
>
> 2013/9/12 jyoti kulkarni <jyotimk029 at gmail.com>
>
>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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/a66f2caf/attachment.html>


More information about the gstreamer-devel mailing list