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 Michael Fabian 'Xaymar' Dirks
parent daa4a385d7
commit 2c8687f4b7

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());
}
}
}