[gst-devel] Get pointer to elements in pipeline

ericcardmanNo3 daniel.kuhne at yahoo.de
Wed Mar 17 18:14:15 CET 2010


wl2776 

Thank you very much! Now I make progess.

Problem solved I think. 
I will post my results after examine the results of the below
postet code to get access to the file descriptor soon.


	GstElement *pFirst = GST_ELEMENT_PARENT(avi);
	fb_fd=0;
	g_object_get(pFirst,"name",&fb_fd,NULL);
	g_print("### name is %s (0x%x)\n",fb_fd,pFirst);
	GstIterator *pIt = gst_bin_iterate_elements(pFirst);
	gpointer p;	
	GstIteratorResult res;
	do{
		res = gst_iterator_next(pIt,&p);
		g_print("======> res = 0x%x pIt = 0x%x p = 0x%x\n",res,pIt,p);
	}while(res != 0x0);

	GstElement *pSecond = GST_ELEMENT_PARENT(pFirst);
	fb_fd=0;
	g_object_get(pSecond,"name",&fb_fd,NULL);
	g_print("### name is %s (0x%x)\n",fb_fd,pSecond);
	pIt = gst_bin_iterate_elements(pSecond);	
	do{
		res = gst_iterator_next(pIt,&p);
		g_print("======> res = 0x%x pIt = 0x%x p = 0x%x\n",res,pIt,p);
	}while(res != 0x0);

Best regards,

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




More information about the gstreamer-devel mailing list