diff options
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/export_handler.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index 38086bd273..c80f1a2af4 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -439,8 +439,8 @@ ExportHandler::export_cd_marker_file (ExportTimespanPtr timespan, ExportFormatSp /* Start actual marker stuff */ - framepos_t last_end_time = timespan->get_start(), last_start_time = timespan->get_start(); - status.track_position = last_start_time - timespan->get_start(); + framepos_t last_end_time = timespan->get_start(); + status.track_position = 0; for (i = temp.begin(); i != temp.end(); ++i) { @@ -471,20 +471,17 @@ ExportHandler::export_cd_marker_file (ExportTimespanPtr timespan, ExportFormatSp if (nexti != temp.end()) { status.track_duration = (*nexti)->start() - last_end_time; - last_start_time = (*i)->start(); last_end_time = (*nexti)->start(); } else { // this was the last marker, use timespan end status.track_duration = timespan->get_end() - last_end_time; - last_start_time = (*i)->start(); last_end_time = timespan->get_end(); } } else { // range status.track_duration = (*i)->end() - last_end_time; - last_start_time = (*i)->start(); last_end_time = (*i)->end(); } |