<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">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:<div><br></div><div>parent = your_element;</div><div><br></div><div>do {</div><div>  old_parent = parent;</div><div>  parent = gst_object_get_parent (parent);</div><div>} while (parent);</div><div><br></div><div>pipeline = old_parent;</div><div><br></div><div>other_element = gst_bin_get_by_name (pipeline, “name”);<br><br>Hope this helps,<br><div dir="ltr"><br></div><div dir="ltr">Michael</div><div dir="ltr">www.ridgerun.com</div><div dir="ltr"><br><blockquote type="cite">On Jul 2, 2020, at 11:12, Josh Doe <josh@joshdoe.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Wed, Jul 1, 2020 at 9:51 AM facepalm <<a href="mailto:ejlungay@gmail.com">ejlungay@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">In my gst-python plugin I wanted to get the pipeline so that I can query all<br>
plugins from the pipeline by name and update their properties.<br></blockquote><div><br></div>Something like this:<br><br>self = playbin.get_by_name('mix')<br>bin = self.get_parent()  # may need to recurse up if bins are nested<br>for el in bin.iterate_elements():<br>    print(el.get_name())<br><br> </div></div>
<span>_______________________________________________</span><br><span>gstreamer-devel mailing list</span><br><span>gstreamer-devel@lists.freedesktop.org</span><br><span>https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</span><br></div></blockquote></div></body></html>