diff options
author | Robin Gareus <robin@gareus.org> | 2018-07-25 18:19:19 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-07-25 18:19:19 +0200 |
commit | 506863bf57940e277a3a129b5d4fcd0299a13015 (patch) | |
tree | 5ca62f39e71609628abf1201fdea570eb532efcd /libs/ardour/ardour | |
parent | 16ef78ade0faf1cbdbdb2dc6c4430fb4996c0323 (diff) |
Add an API to reset export-handler configs.
config_map.erase() is only called in ExportHandler::finish_timespan().
When an export fails (throw) or is aborted, the export-handler's
config remains as is and the next export will run it again.
The export-handler is global, per session and
ExportHandler::add_export_config() only ever inserts or ignores insert.
This is in preparation to fix:
1) export to invalid path -> fail, error is thrown
2) correct path -> new config is inserted in the map
3) try to export again, first runs the not-completed export from (1)
-> constant errors.
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/export_handler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/ardour/export_handler.h b/libs/ardour/ardour/export_handler.h index 352451c4a3..d9d268af01 100644 --- a/libs/ardour/ardour/export_handler.h +++ b/libs/ardour/ardour/export_handler.h @@ -124,6 +124,8 @@ class LIBARDOUR_API ExportHandler : public ExportElementFactory, public sigc::tr bool soundcloud_open_page; bool soundcloud_downloadable; + void reset (); + private: void handle_duplicate_format_extensions(); |