Prepare libardour for FileArchive progress API update
This commit is contained in:
parent
b5d3ef68bf
commit
25234702fe
@ -5552,11 +5552,6 @@ Session::save_as (SaveAs& saveas)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void set_progress (Progress* p, size_t n, size_t t)
|
|
||||||
{
|
|
||||||
p->set_progress (float (n) / float(t));
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
Session::archive_session (const std::string& dest,
|
Session::archive_session (const std::string& dest,
|
||||||
const std::string& name,
|
const std::string& name,
|
||||||
@ -5624,9 +5619,6 @@ Session::archive_session (const std::string& dest,
|
|||||||
|
|
||||||
PBD::ScopedConnectionList progress_connection;
|
PBD::ScopedConnectionList progress_connection;
|
||||||
PBD::FileArchive ar (archive);
|
PBD::FileArchive ar (archive);
|
||||||
if (progress) {
|
|
||||||
ar.progress.connect_same_thread (progress_connection, boost::bind (&set_progress, progress, _1, _2));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* collect files to archive */
|
/* collect files to archive */
|
||||||
std::map<string,string> filemap;
|
std::map<string,string> filemap;
|
||||||
|
Loading…
Reference in New Issue
Block a user