Merge pull request #7307 from kaesa/dev

Fix DCPProfile constructor not respecting the verbose setting
This commit is contained in:
Lawrence37
2025-02-16 18:12:19 -08:00
committed by GitHub

View File

@@ -1131,13 +1131,17 @@ DCPProfile::DCPProfile(const Glib::ustring& filename) :
});
if (file == nullptr) {
printf ("Unable to load DCP profile '%s' !", filename.c_str());
if (settings->verbose) {
printf ("Unable to load DCP profile '%s' !\n", filename.c_str());
}
return;
}
DCPMetadata md(file.get());
if (!md.parse()) {
printf ("Unable to load DCP profile '%s'.", filename.c_str());
if (settings->verbose) {
printf ("Unable to load DCP profile '%s'.\n", filename.c_str());
}
return;
}