add GStreamer
This commit is contained in:
8
main.cpp
8
main.cpp
@@ -73,6 +73,8 @@ int main() {
|
||||
|
||||
std::cout << "\nVizion Streamer is running." << std::endl;
|
||||
std::cout << "Control socket: " << socketPath << std::endl;
|
||||
std::cout << "Default GStreamer pipeline: videoconvert ! autovideosink" << std::endl;
|
||||
std::cout << "Use socket commands to start streaming and configure pipeline.\n" << std::endl;
|
||||
std::cout << "Press Ctrl+C to exit.\n" << std::endl;
|
||||
|
||||
// Main loop - keep running until signaled to stop
|
||||
@@ -82,6 +84,12 @@ int main() {
|
||||
|
||||
// Cleanup
|
||||
std::cout << "Shutting down..." << std::endl;
|
||||
|
||||
// Stop streaming engine if running
|
||||
if (controller->getStreamingEngine()->isRunning()) {
|
||||
controller->getStreamingEngine()->stop();
|
||||
}
|
||||
|
||||
server.stop();
|
||||
VxClose(cam);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user