#include <gstreamermm.h>
int main(int argc, char *argv[])
{
for (Glib::RefPtr<Gst::ElementFactory> factory
{
}
if (!fakesrc_factory)
{
return -1;
}
std::cout <<
"Author of the element '" << fakesrc_factory->get_name() <<
"' is "
std::cout <<
"All information about element '" << fakesrc_factory->get_name() <<
"':" <<
std::endl;
for (auto metadata_key : fakesrc_factory->get_metadata_keys())
{
std::cout <<
" * " << metadata_key <<
": " << fakesrc_factory->get_metadata(metadata_key) <<
std::endl;
}
{
Glib::RefPtr<Gst::Element> fakesrc = fakesrc_factory->create("source");
if (!fakesrc)
{
return -1;
}
}
{
if (!fakesrc)
{
return -1;
}
}
return 0;
}
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
static Glib::RefPtr< Gst::ElementFactory > find(const Glib::ustring &name)
Search for an element factory of the given name.
static std::vector< Glib::RefPtr< Gst::ElementFactory > > get_elements(ElementFactoryListType type, Rank minrank)
Get a list of factories that match the given type.
static Glib::RefPtr< Gst::Element > create_element(const Glib::ustring &factory_name, const Glib::ustring &name)
Create a new element of the type defined by the given element factory.
void init(int &argc, char **&argv)
Initializes gstreamermm parsing command line arguments.
@ ELEMENT_FACTORY_TYPE_DEMUXER
Definition: elementfactory.h:55
@ RANK_PRIMARY
Will be chosen first.
Definition: pluginfeature.h:79