<div dir="ltr"><div><div>Your question ia a bit vague so I will assume you already have a reference to a pipeline.<br><br></div>What you are looking for is <a class="gmail-link" href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html#gst-bin-get-by-name" title="gst_bin_get_by_name ()">gst_bin_get_by_name</a>, you can see it under the gstbin doc:<br><br><a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html</a><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 18, 2017 at 4:18 PM, vanderhoffer <span dir="ltr"><<a href="mailto:vanderhoffer@gmail.com" target="_blank">vanderhoffer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am aware we can use *gst_object_set_name and gst_object_get_name* when we<br>
have the object, but what is the reverse, if we have the name how can we<br>
get a reference to the object.<br>
<br>
for example if I want to get a position for an element,<br>
<br>
gst_element_query_position(<wbr>element, fmt, &pos);<br>
<br>
but we only have the name,how do we create a reference for "element"?<br>
<br>
thx<br>
Art<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/a-101-question-how-to-get-an-element-by-name-tp4681537.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/a-101-question-<wbr>how-to-get-an-element-by-name-<wbr>tp4681537.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</blockquote></div><br></div>