[gst-devel] get element type name
Edward Hervey
bilboed at gmail.com
Wed Dec 1 20:50:26 CET 2010
On Wed, 2010-12-01 at 11:25 -0800, Wes Miller wrote:
> Hi All,
>
> Let's say I have a udpsrc element named "my_src" created thus:
>
> recvSrc = gst_element_factory_make( "udpsrc" , "my_src" ));
>
> If I use this construct, I get "GstUdpSrc":
>
> g_print( "%s\n", g_type_name( G_OBJECT_TYPE( recvSrc )) );
>
> What U'd like to get, instead, is "udpsrc". Is there a function to do that?
>
> And what are the proper things to call these two items.
So you want the factory name ?
maybe there's a function to get the factory from an element
and maybe there's a function to get the name of a factory
hint : gst_<something>_get_<somethingelse>
Edward
>
> Thanks,
>
> Wes
>
>
>
More information about the gstreamer-devel
mailing list