#include <gstreamermm.h>
int main(int argc, char *argv[])
{
try
{
bin->add(fakesrc)->add(fakesink);
}
{
return 1;
}
Glib::RefPtr<Gst::Bin> playbin_bin = playbin_bin.cast_static(playbin);
if (!playbin_bin)
{
return 1;
}
{
}
bin->signal_element_removed().connect(
[] (const Glib::RefPtr<Gst::Element>& removed_element)
{
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 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()
Initializes gstreamermm without parsing command line options.