[gst-devel] gst_element_get_name in gst_myelement_init

Kalyanavarathan, Vasanth VKalyanavarathan at ndsuk.com
Thu May 18 06:23:22 CEST 2006


Hello There
 
I am just trying to do a simple log in my (gst plugin) that work with
another library, to trace resource leaks in the library that is being
used by the plugin.
 
I get a proper name in the finalize but I get (null) in the initialize.
When can I expect the element name to be 
initialized ?
 
Code snippet looks as follows:
 
gst_myelement_init(GstMyElement *filter, GstMyElementClass* gclass)
{
    gchar* elementname = gst_element_get_name(GST_ELEMENT(filter));
    g_message("Initialized %s", elementname);
    g_free(elementname);
}
 
gst_myelement_finalize(GObject* object)
{
   GstMyElement *filter = GST_MYELEMENT(object);
   gchar* elementname = gst_element_get_name(GST_ELEMENT(filter));
    g_message("Finalized %s", elementname);
    g_free(elementname);
}
 
Thanks for your time
Vasanth



=========================================================

This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20060518/3fb006de/attachment.htm>


More information about the gstreamer-devel mailing list