[gst-devel] Get pointer to elements in pipeline

wl2776 wl2776 at gmail.com
Wed Mar 17 13:00:55 CET 2010



ericcardmanNo3 wrote:
> 
> Hm. Parent is the decoder plugin itself ??!
> 

No. If you have a reference to the decoder element, than you can get its
parent, which will be some bin.
Then you can use gst_bin_get_* and gst_bin_iterate_*  functions to find
source elements, and then you can query them for the file descriptor.

Another way, your decoder has a sink pad, where data come, and you can get a
reference to it.
Then, there is a function gst_pad_get_peer, which return a peer pad, which
belongs to another element. Hopefully, this element is the one, feeding your
decoder with data. 
Then you can query the pad for its parent and query that parent for fd.
-- 
View this message in context: http://n4.nabble.com/Get-pointer-to-elements-in-pipeline-tp1596079p1596279.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list