Re: a 101 question, how to get an element by name

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: a 101 question, how to get an element by name

Dimitrios Katsaros
Your question ia a bit vague so I will assume you already have a reference to a pipeline.

What you are looking for is gst_bin_get_by_name, you can see it under the gstbin doc:

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html


On Wed, Jan 18, 2017 at 4:18 PM, vanderhoffer <[hidden email]> wrote:
I am aware we can use   *gst_object_set_name and gst_object_get_name* when we
have the  object, but what is the reverse, if we have the name how can we
get a reference to the object.

for example if I want to get a position for an element,

gst_element_query_position(element, fmt, &pos);

but we only have the name,how do we create a reference for "element"?

thx
Art




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/a-101-question-how-to-get-an-element-by-name-tp4681537.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
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