Fix default int value in build.info

This commit is contained in:
John Zhao
2018-06-07 16:23:38 +08:00
parent 87458482d9
commit 22ea971407
2 changed files with 26 additions and 3 deletions

View File

@@ -301,9 +301,13 @@ void API::Start(const Source &source) {
if (source == Source::VIDEO_STREAMING) {
#ifdef WITH_FILESYSTEM
if (!synthetic_->HasPlugin()) {
auto &&plugin_paths = get_plugin_paths();
if (plugin_paths.size() > 0) {
EnablePlugin(plugin_paths[0]);
try {
auto &&plugin_paths = get_plugin_paths();
if (plugin_paths.size() > 0) {
EnablePlugin(plugin_paths[0]);
}
} catch (...) {
LOG(WARNING) << "Incorrect yaml format: build.info";
}
}
#endif