Fix taglib error message
This commit is contained in:
parent
c4f0393cf9
commit
f0cb8e54c3
|
@ -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?!
|
||||
}
|
||||
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user