A gstreamermm Gst::Bin example.
#include <gstreamermm.h>
int main(int argc, char *argv[])
{
try
{
bin->add(fakesrc)->add(fakesink);
}
{
return 1;
}
if (!playbin_bin)
{
return 1;
}
{
}
bin->signal_element_removed().connect(
{
std::cout <<
"Element '" << removed_element->get_name()
<<
"' has been removed from the bin" <<
std::endl;
}
);
bin->remove(fakesink);
return 0;
}
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
virtual const char * what() const noexcept
static RefPtr cast_static(const RefPtr< T_CastFrom > &src) noexcept
static Glib::RefPtr< Bin > create()
Creates a new bin with a unique generic name.
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.
A class used to retrieve multiple reference counted elements in a thread safe way.
Definition: iterator.h:286
IteratorResult next()
Moves to the next iterator item.
void init(int &argc, char **&argv)
Initializes gstreamermm parsing command line arguments.