[gst-devel] get element type name
Michael Smith
msmith at xiph.org
Wed Dec 1 22:46:06 CET 2010
On Wed, Dec 1, 2010 at 1:19 PM, Wes Miller <wmiller at sdr.com> wrote:
>
> Edward and Michael,
>
> Between you I got the answer I needed. Knowing what to call "something"
> sure help trying to find the gst_something_get_somethingelse().
>
> g_print( " | %-*s", c3w, gst_plugin_feature_get_name(
> gst_element_get_factory( element )) );
>
> However, when I check the warnings from my compiler I see that the pointer
> type from gst_element_get_factory() isn't what gst_plugin_feature_get_name()
> is looking for. Well, of course not, a factory is not a pugin feature.
A factory _is_ a plugin feature. It's a subclass, as the documentation says.
You can cast it; there's a macro for that.
Mike
More information about the gstreamer-devel
mailing list