Merge win support into develop

This commit is contained in:
John Zhao
2018-06-01 00:17:12 +08:00
12 changed files with 942 additions and 190 deletions

View File

@@ -414,7 +414,7 @@ void Device::StartVideoStreaming() {
uvc::set_device_mode(
*device_, stream_request.width, stream_request.height,
static_cast<int>(stream_request.format), stream_request.fps,
[this](const void *data) {
[this](const void *data, std::function<void()> continuation) {
// drop the first stereo stream data
static std::uint8_t drop_count = 1;
if (drop_count > 0) {
@@ -425,6 +425,7 @@ void Device::StartVideoStreaming() {
CallbackPushedStreamData(Stream::LEFT);
CallbackPushedStreamData(Stream::RIGHT);
}
continuation();
});
} else {
LOG(FATAL) << "Not any stream capabilities are supported by this device";