[gst-devel] Get pointer to elements in pipeline

ericcardmanNo3 daniel.kuhne at yahoo.de
Wed Mar 17 16:23:29 CET 2010


i do:

	GstPad *pP = gst_pad_get_peer(dec->sinkpad);
	GstElement* pDEC = (GstElement*) gst_pad_get_parent_element (dec->sinkpad);
	GstElement *pEE = gst_bin_get_by_name(GST_ELEMENT_PARENT(pDEC),"filesrc");
	GstElement *pEE1 = gst_bin_get_by_name(dec,"filesrc");
	g_print("§§§§ GST_ELEMENT_PARENT is 0x%x pEE is 0x%x pEE1 is  
                                                                    
0x%x\n",GST_ELEMENT_PARENT(pDEC),pEE, pEE1);
	g_object_get(pDEC,"name",&fb_fd,NULL);
	g_print("### pP is 0x%x (pDEC is 0x%x [%s])\n",pP,pDEC,fb_fd);

OUTPUT IS:

(<unknown>:1493): GStreamer-CRITICAL **: gst_bin_get_by_name: assertion
`GST_IS_BIN (bin)' failed
???? GST_ELEMENT_PARENT is 0xf4040 pEE is 0x0 pEE1 is 0x0
### pP is 0xaad80 (pDEC is 0x165128 [my264decoder0])

Do you know what i am doing wrong here? 

-- 
View this message in context: http://n4.nabble.com/Get-pointer-to-elements-in-pipeline-tp1596079p1596594.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list