encoders/ffmpeg: Use correct parameter for log (#355)

This commit is contained in:
Daniel Molkentin 2020-10-09 20:26:46 +02:00 committed by GitHub
parent dc311f5ce6
commit bb3dcf73ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1136,7 +1136,7 @@ void ffmpeg_manager::register_encoders()
try {
_factories.emplace(codec, std::make_shared<ffmpeg_factory>(codec));
} catch (const std::exception& ex) {
DLOG_ERROR("Failed to register encoder '%s': %s", codec->id, ex.what());
DLOG_ERROR("Failed to register encoder '%s': %s", codec->name, ex.what());
}
}
}
@ -1151,7 +1151,7 @@ void ffmpeg_manager::register_encoders()
try {
_factories.emplace(codec, std::make_shared<ffmpeg_factory>(codec));
} catch (const std::exception& ex) {
DLOG_ERROR("Failed to register encoder '%s': %s", codec->id, ex.what());
DLOG_ERROR("Failed to register encoder '%s': %s", codec->name, ex.what());
}
}
}