Fix for DCPProfile constructor not respecting verbose on all printf occurrences.
This commit is contained in:
parent
fe94a34d7d
commit
5edf870c13
@ -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' !", 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'.", filename.c_str());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user