A gstreamermm Gst::Bin example.
#include <gstreamermm.h>
#include <iostream>
int main(int argc, char *argv[])
{
  
  
  
  try
  {
    bin->
add(fakesrc)->add(fakesink);
  }
  {
    std::cerr << 
"Exception while adding: " << ex.what() << 
std::endl;
     return 1;
  }
  
  
  if (!playbin_bin)
  {
    std::cerr << 
"Cannot find playbin element" << 
std::endl;
    return 1;
  }
  
  std::cout << 
"List of elements in the container: " << 
std::endl;
   {
  }
  
  
    {
      std::cout << 
"Element '" << removed_element->
get_name()
                << 
"' has been removed from the bin" << 
std::endl;
    }
  );
  std::cout << 
"returning from application..." << 
std::endl;
  return 0;
}