Fix taglib error message

This commit is contained in:
Robin Gareus 2021-04-08 06:36:47 +02:00
parent c4f0393cf9
commit f0cb8e54c3
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,7 @@ AudiofileTagger::tag_file (std::string const& filename, SessionMetadata const& m
TagLib::FileRef file (filename.c_str ());
if (file.isNull ()) {
std::cerr << "TagLib::FileRef is null for file" << filename << std::endl;
std::cerr << "TagLib::FileRef is null for file '" << filename << "'" << std::endl;
return true; // continue anyway?!
}

View File

@ -369,6 +369,10 @@ ExportHandler::finish_timespan ()
while (config_map.begin() != timespan_bounds.second) {
// XXX single timespan+format may produce multiple files
// e.g export selection == session
// -> TagLib::FileRef is null
ExportFormatSpecPtr fmt = config_map.begin()->second.format;
std::string filename = config_map.begin()->second.filename->get_path(fmt);
if (fmt->with_cue()) {