summaryrefslogtreecommitdiff
path: root/session_utils
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-03-23 21:47:13 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-03-23 21:47:13 -0600
commit0f63b829439e74c9ca8e3e1b8597651ddff361c6 (patch)
tree52ff6ab429c3cc0ea746a38864ee04dbd8fac9a0 /session_utils
parent3bbad66a999dbe402209881de072720d78f01793 (diff)
fix error in multiple calls to SourceFactory::createWritable()
removal of tape tracks removed an intermediate argument in the argument list; presence of default args for the last two arguments and implicit conversion from int->bool prevented the compiler from complaining about any existing calls. This supplements/extends a54b000a70
Diffstat (limited to 'session_utils')
-rw-r--r--session_utils/fix_bbtppq.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/session_utils/fix_bbtppq.cc b/session_utils/fix_bbtppq.cc
index c96905a472..e3767c8cda 100644
--- a/session_utils/fix_bbtppq.cc
+++ b/session_utils/fix_bbtppq.cc
@@ -119,9 +119,7 @@ ensure_per_region_source (Session* session, boost::shared_ptr<MidiRegion> region
<< " for region " << region->name() << endl;
} else {
- newsrc = boost::dynamic_pointer_cast<MidiSource>(
- SourceFactory::createWritable(DataType::MIDI, *session,
- newsrc_path, false, session->sample_rate()));
+ newsrc = boost::dynamic_pointer_cast<MidiSource>(SourceFactory::createWritable(DataType::MIDI, *session, newsrc_path, session->sample_rate()));
if (!newsrc) {
cout << UTILNAME << ":" << endl
@@ -175,8 +173,7 @@ ensure_per_source_source (Session* session, boost::shared_ptr<MidiRegion> region
} else {
newsrc = boost::dynamic_pointer_cast<MidiSource>(
- SourceFactory::createWritable(DataType::MIDI, *session,
- newsrc_path, false, session->sample_rate()));
+ SourceFactory::createWritable(DataType::MIDI, *session, newsrc_path, session->sample_rate()));
if (!newsrc) {
cout << UTILNAME << ":" << endl
<<" An error occurred creating writeable source " << newsrc_path << " exiting." << endl;