Retrieving the demuxer element from a decodebin

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Jan 11 03:51:46 PST 2013


On Fri, 2013-01-11 at 03:43 -0800, gimmeamilk wrote:

> I've created a decodebin pipeline, and now I want to get a reference to the
> demuxer element that was autoplugged. Should I use
> gst_bin_iterate_elements() and check each element's KLASS metadata for the
> "Demuxer" string, or is there a more preferred way? Thanks.

I don't think there's a "good" way of doing this currently, but what you
suggest should work (there are also element factory utility functions
for checking that stuff). What's your use case here?

Cheers 
-Tim



More information about the gstreamer-devel mailing list