Remove doubled quotes in TOC export PERFORMER field
[ardour.git] / libs / ardour / export_handler.cc
index bcc2783104d15c83d69accf52d3ab663364eb068..fc7236914f5de992e3e6caa8326c6433d7715789 100644 (file)
@@ -520,7 +520,10 @@ ExportHandler::get_cd_marker_filename(std::string filename, CDMarkerFormat forma
        case CDMarkerCUE:
                return filename + ".cue";
        case MP4Chaps:
-               return filename + ".chapters.txt";
+       {
+               unsigned lastdot = filename.find_last_of('.');
+               return filename.substr(0,lastdot) + ".chapters.txt";
+       }
        default:
                return filename + ".marker"; // Should not be reached when actually creating a file
        }
@@ -596,7 +599,7 @@ ExportHandler::write_toc_header (CDMarkerStatus & status)
        status.out << "CD_DA" << endl;
        status.out << "CD_TEXT {" << endl << "  LANGUAGE_MAP {" << endl << "    0 : EN" << endl << "  }" << endl;
        status.out << "  LANGUAGE 0 {" << endl << "    TITLE " << toc_escape_cdtext (title) << endl ;
-       status.out << "    PERFORMER \"" << toc_escape_cdtext (album_artist) << "\"" << endl;
+       status.out << "    PERFORMER " << toc_escape_cdtext (album_artist) << endl;
        status.out << "  }" << endl << "}" << endl;
 }