In the previous section we described how you could obtain an element factory using MIME types. One the factory has been obtained, you can create an element using:
GstElementFactory *factory; GstElement *element; // obtain the factory factory = ... element = gst_element_factory_create (factory, "name");
This way, you do not have to create elements by name which allows the end-user to select the elements he/she prefers for the given MIME types.