usbstream: Wait for enter rather than infinite loop/sleep.

This commit is contained in:
Peter Johnson
2016-10-15 22:45:56 -07:00
parent 30f4ecd171
commit 70531762b9

View File

@@ -1,6 +1,6 @@
#include "cameraserver.h"
#include <thread>
#include <stdio.h>
int main() {
cs::USBCamera camera{"usbcam", 1};
@@ -8,5 +8,5 @@ int main() {
cs::MJPEGServer mjpegServer{"httpserver", 8080};
mjpegServer.SetSource(camera);
for (;;) std::this_thread::sleep_for(std::chrono::seconds(1));
getchar();
}