Hi All, Is there any way to extract the parent element information from a gstreamer element? I tried it using the following code snippets but none of them worked. GstElement *elem = GST_ELEMENT_CAST(gst_element_get_parent(GST_ELEMENT(pad))); g_print("In element %s\n", gst_element_get_name(elem)); //-------this displays current element name properly elem = GST_ELEMENT_CAST(gst_element_get_parent(elem)); g_print("Parent element is %s\n", gst_element_get_name(elem)); //---this displays pipeline0 elem = GST_ELEMENT_CAST(gst_element_get_parent(elem)); //--this throws the following error g_print("Grand Parent element is %s\n", gst_element_get_name(elem)); /*(gst-launch-0.10:488): GStreamer-CRITICAL **: gst_object_get_name: assertion `GS T_IS_OBJECT (object)' failed Caught SIGSEGV accessing address (nil) Spinning. Please run 'gdb gst-launch 488' to continue debugging, Ctrl-C to quit , or Ctrl-\ to dump core. */ Then I tried, GstElement *elem = GST_ELEMENT_CAST(gst_element_get_parent(GST_ELEMENT(pad))); elem = GST_ELEMENT_CAST(gst_element_get_parent(elem)); GstElementClass *kl = GST_ELEMENT_GET_CLASS(elem); g_print("In element %s\n", gst_object_get_name((GstObject*)(kl.details->longname)); This again gave pipeline0, where I'm expecting the actual name of the element. It would be great if anyone can guide me. Many thanks in advance, Gireesh -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/gstreamer-embedded/attachments/20081106/397f5d4c/attachment.htm>