gst_bin_get_by_name with a prefix?
juan.navarro at gmx.es
Tue May 7 22:31:15 UTC 2019
is there anything like gst_bin_get_by_name() but that accepts a prefix?
Searching strictly by name falls short really soon, and given that the
default behavior is to add a number after the element names ("mp4mux0"),
it would make sense that there is already a function like that, but I
cannot find anything similar.
being able to find by prefix would overcome changes such as this:
which breaks finding the elements by name, something that gets done very
commonly in GStreamer, such as in here:
I guess it's possible to just iterate manually over all bin elements and
check the name prefixes, but it would be handy of such function already
existed somewhere in GStreamer...
More information about the gstreamer-devel