include monitor->Importance when logging failed camera connects
This commit is contained in:
parent
e73765c5bf
commit
a76128e9c4
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue