A gstreamermm Gst::Bus example.
#include <gstreamermm.h>
#include <iostream>
{
  
  {
  }
  {
  
  {
    std::cout << 
"Error: " << error_msg->parse_error().what() << 
std::endl;
    std::cout << 
"Debug: " << error_msg->parse_debug() << 
std::endl;
    break;
  }
  
    break;
  
  {
    break;
  }
  
  default:
    break;
  }
  return true;
}
int main(int argc, char *argv[])
{
  
  
  
  try
  {
    pipeline->
add(source)->add(sink);
  }
  {
    std::cerr << 
"Exception while adding: " << ex.what() << 
std::endl;
     return 1;
  }
  
  try
  {
  }
  {
    std::cerr << 
"Exception while linking: " << ex.what() << 
std::endl;
  }
  
  
  
  
  return 0;
}