feat(correspondence): add get correspondence data

This commit is contained in:
John Zhao
2019-02-22 14:00:23 +08:00
parent ab52fd5280
commit 85acd7b915
4 changed files with 94 additions and 18 deletions

View File

@@ -349,6 +349,9 @@ OptionInfo Device::GetOptionInfo(const Option &option) const {
std::int32_t Device::GetOptionValue(const Option &option) const {
if (!Supports(option)) {
if (option == Option::FRAME_RATE) {
return GetStreamRequest().fps;
}
LOG(WARNING) << "Unsupported option: " << option;
return -1;
}