diff options
-rw-r--r-- | src/cam/capture.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cam/capture.cpp b/src/cam/capture.cpp index 7d970f99..6cbdc98c 100644 --- a/src/cam/capture.cpp +++ b/src/cam/capture.cpp @@ -30,18 +30,18 @@ int Capture::run(EventLoop *loop, const OptionsParser::Options &options) return -ENODEV; } - streamName_.clear(); - for (unsigned int index = 0; index < config_->size(); ++index) { - StreamConfiguration &cfg = config_->at(index); - streamName_[cfg.stream()] = "stream" + std::to_string(index); - } - ret = camera_->configure(config_); if (ret < 0) { std::cout << "Failed to configure camera" << std::endl; return ret; } + streamName_.clear(); + for (unsigned int index = 0; index < config_->size(); ++index) { + StreamConfiguration &cfg = config_->at(index); + streamName_[cfg.stream()] = "stream" + std::to_string(index); + } + camera_->requestCompleted.connect(this, &Capture::requestComplete); if (options.isSet(OptFile)) { |