add credits
This commit is contained in:
5
main.cpp
5
main.cpp
@@ -71,10 +71,8 @@ int main() {
|
||||
std::cout << "Initial format: " << fmtList[0].width << "x" << fmtList[0].height
|
||||
<< " @ " << fmtList[0].framerate << " fps" << std::endl;
|
||||
|
||||
// Create camera controller
|
||||
const auto controller = std::make_shared<CameraController>(cam);
|
||||
|
||||
// Start Unix domain socket server
|
||||
const std::string socketPath = "/tmp/vizion_control.sock";
|
||||
SocketServer server(socketPath);
|
||||
|
||||
@@ -98,15 +96,12 @@ int main() {
|
||||
std::cout << R"( echo '{"command":"set_pipeline","params":{"pipeline":"YOUR_PIPELINE"}}' | socat - UNIX-CONNECT:)" << socketPath << std::endl;
|
||||
std::cout << "\nPress Ctrl+C to exit.\n" << std::endl;
|
||||
|
||||
// Main loop - keep running until signaled to stop
|
||||
while (g_running) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
}
|
||||
|
||||
// Cleanup
|
||||
std::cout << "Shutting down..." << std::endl;
|
||||
|
||||
// Stop streaming engine if running
|
||||
if (controller->getStreamingEngine()->isRunning()) {
|
||||
controller->getStreamingEngine()->stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user