configurable export preroll

This commit is contained in:
Robin Gareus
2016-02-29 15:13:06 +01:00
parent 33545e552b
commit 8741a5885b
2 changed files with 3 additions and 1 deletions

View File

@@ -271,3 +271,5 @@ CONFIG_VARIABLE (std::string, video_server_docroot, "video-server-docroot", "C:\
#endif
CONFIG_VARIABLE (bool, show_video_export_info, "show-video-export-info", true)
CONFIG_VARIABLE (bool, show_video_server_dialog, "show-video-server-dialog", false)
CONFIG_VARIABLE (float, export_preroll, "export-preroll", 10.0) // seconds

View File

@@ -110,7 +110,7 @@ Session::start_audio_export (framepos_t position)
pre_export ();
}
_export_preroll = 10.0 * nominal_frame_rate (); // TODO make configurable
_export_preroll = Config->get_export_preroll() * nominal_frame_rate ();
/* We're about to call Track::seek, so the butler must have finished everything
up otherwise it could be doing do_refill in its thread while we are doing