Sunshine/sunshine/main.cpp

32 lines
472 B
C++
Raw Normal View History

//
// Created by loki on 5/30/19.
//
#include <thread>
#include "nvhttp.h"
#include "stream.h"
extern "C" {
#include <rs.h>
}
2019-12-03 22:19:00 +00:00
#include "config.h"
2019-12-05 23:13:16 +00:00
#include "platform/common.h"
using namespace std::literals;
2019-12-03 22:19:00 +00:00
int main(int argc, char *argv[]) {
if(argc > 1) {
config::parse_file(argv[1]);
}
reed_solomon_init();
std::thread httpThread { nvhttp::start };
std::thread rtpThread { stream::rtpThread };
httpThread.join();
rtpThread.join();
return 0;
}