Ultimately, you need the pipeline (or a bin) to get the element by name. Elements live in bins, which are their parents. The only element that doesn’t have a parent is the top level pipeline. Something like this should work:
parent = your_element;
do {
old_parent = parent;
parent = gst_object_get_parent (parent);
} while (parent);
pipeline = old_parent;
other_element = gst_bin_get_by_name (pipeline, “name”);
Hope this helps,
Michael
www.ridgerun.com
In my gst-python plugin I wanted to get the pipeline so that I can query all
plugins from the pipeline by name and update their properties.
Something like this:
self = playbin.get_by_name('mix')
bin = self.get_parent() # may need to recurse up if bins are nested
for el in bin.iterate_elements():
print(el.get_name())
_______________________________________________gstreamer-devel mailing list[hidden email]https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel