include monitor->Importance when logging failed camera connects

This commit is contained in:
Isaac Connor 2022-01-01 18:56:13 -05:00
parent e73765c5bf
commit a76128e9c4
1 changed files with 2 additions and 1 deletions

View File

@ -295,7 +295,8 @@ int FfmpegCamera::OpenFfmpeg() {
ret = avformat_open_input(&mFormatContext, mPath.c_str(), nullptr, &opts);
if ( ret != 0 )
{
Error("Unable to open input %s due to: %s", mPath.c_str(),
logPrintf(Logger::ERROR + monitor->Importance(),
"Unable to open input %s due to: %s", mPath.c_str(),
av_make_error_string(ret).c_str());
if ( mFormatContext ) {