IceGStreamer/src/main.cpp

24 lines
685 B
C++

#include "modules/config.h"
#include "modules/exceptions.h"
#include "modules/streamer.h"
#include <iostream>
#include <vector>
#include <yaml-cpp/yaml.h>
int main(int argc, char *argv[]) {
IceGStreamer::Config::_config config;
try {
config = IceGStreamer::Config::load(argc, argv);
IceGStreamer::Streamer::start(argc, argv, config);
} catch (IceGStreamer::Exceptions::PlayerExceptionBase &e) {
std::cerr << "Exception: " << e.what() << std::endl;
return 1;
} catch (YAML::Exception &e) {
std::cerr << e.what() << std::endl;
return 1;
}
// for (int x = 0; x< 1000000000; x++)
// IceGStreamer::Streamer::start(argc, argv, config);
return 0;
}