* Fix problem with JACK being left in freewheeling after export
authorSakari Bergen <sakari.bergen@beatwaves.net>
Thu, 6 Nov 2008 20:22:48 +0000 (20:22 +0000)
committerSakari Bergen <sakari.bergen@beatwaves.net>
Thu, 6 Nov 2008 20:22:48 +0000 (20:22 +0000)
* Add quotes to cuefile filename entries

git-svn-id: svn://localhost/ardour2/branches/3.0@4098 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ardour/export_status.h
libs/ardour/export_handler.cc
libs/ardour/session_export.cc

index 88c2feb4937ad6556c36ee40569adedacec5656b..42dd3aff4c770b31fcaa0214c5062f5227ae9ca3 100644 (file)
@@ -53,7 +53,7 @@ struct ExportStatus {
        
        sigc::signal<void>      Finished;
        void finish ();
-       bool finished () const { return _aborted; }
+       bool finished () const { return _finished; }
        
        /* Progress info */
        
index ba26821a5b831b86fe65245887ee35001b5257ba..b48522670b553037d735c134ae27315e465f62a9 100644 (file)
@@ -292,7 +292,7 @@ ExportHandler::write_cue_header (CDMarkerStatus & status)
        if (!status.format->format_name().compare ("WAV")) {
                  status.out << "FILE " << status.filename  << " WAVE" << endl;
        } else {
-                 status.out << "FILE " << status.filename  << ' ' << status.format->format_name() << endl;
+                 status.out << "FILE \"" << status.filename  << "\" " << status.format->format_name() << endl;
        }
 }
 
index 3ddceb6b00bce5de374d308f4d09d492afffa181..0438d808a047404601ab546811ecca10a069029c 100644 (file)
@@ -93,6 +93,7 @@ Session::pre_export ()
        _exporting = true;
        export_status->running = true;
        export_abort_connection = export_status->Aborting.connect (sigc::hide_return (sigc::mem_fun (*this, &Session::stop_audio_export)));
+       export_abort_connection = export_status->Finished.connect (sigc::hide_return (sigc::mem_fun (*this, &Session::finalize_audio_export)));
 
        return 0;
 }
@@ -214,9 +215,7 @@ Session::stop_audio_export ()
 
        if (!export_status->aborted()) {
                ExportReadFinished ();
-       }
-       
-       if (export_status->finished()) {
+       } else {
                finalize_audio_export ();
        }