fix invalid mapping detection
[ardour.git] / libs / ardour / export_handler.cc
index cbc2ed3c911c1b52d421d234573ea8d424da4ea8..5e3509167da50aee9ea27c8b8a3e4a0861d79ee0 100644 (file)
@@ -234,7 +234,6 @@ ExportHandler::process (framecnt_t frames)
                Glib::Threads::Mutex::Lock l (export_status->lock());
                return process_normalize ();
        } else {
-               export_status->active_job = ExportStatus::Exporting;
                Glib::Threads::Mutex::Lock l (export_status->lock());
                return process_timespan (frames);
        }
@@ -243,6 +242,7 @@ ExportHandler::process (framecnt_t frames)
 int
 ExportHandler::process_timespan (framecnt_t frames)
 {
+       export_status->active_job = ExportStatus::Exporting;
        /* update position */
 
        framecnt_t frames_to_read = 0;
@@ -322,6 +322,8 @@ ExportHandler::finish_timespan ()
                        export_cd_marker_file (current_timespan, fmt, filename, MP4Chaps);
                }
 
+               Session::Exported (current_timespan->name(), filename); /* EMIT SIGNAL */
+
                /* close file first, otherwise TagLib enounters an ERROR_SHARING_VIOLATION
                 * The process cannot access the file because it is being used.
                 * ditto for post-export and upload.