diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2008-09-28 11:11:38 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2008-09-28 11:11:38 +0000 |
commit | 6b50ba341da426805ce3c92609c0fa12c52b67ac (patch) | |
tree | 4ed20d3699613da5a952b09b7e9ef47ceb6b8610 /libs/ardour/export_status.cc | |
parent | 909995338c970e9f8f7a51886502640527f2061e (diff) |
* Improved export error handling, streamlined ExportFailed
* Cleaned out export related visibility in Session, and simpified Session <--> export component communication in general
* Removed export_status.h header dependency from session.h
* Added check for libsndfile FLAC and Ogg Vorbis compatibility
* Added ExportFileFactory, leading in cleaner code in ExportProcessor, and better extensibility for possible future non-libsndfile formats
git-svn-id: svn://localhost/ardour2/branches/3.0@3818 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/export_status.cc')
-rw-r--r-- | libs/ardour/export_status.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/ardour/export_status.cc b/libs/ardour/export_status.cc index c64a03fe23..a31e66dc39 100644 --- a/libs/ardour/export_status.cc +++ b/libs/ardour/export_status.cc @@ -34,6 +34,8 @@ ExportStatus::init () stop = false; running = false; _aborted = false; + _finished = false; + _errors = false; stage = export_None; progress = 0.0; @@ -48,4 +50,20 @@ ExportStatus::init () format = 0; } +void +ExportStatus::abort (bool error_occurred) +{ + _aborted = true; + _finished = true; + _errors = _errors || error_occurred; + Aborting (); +} + +void +ExportStatus::finish () +{ + _finished = true; + Finished(); +} + } // namespace ARDOUR |