summaryrefslogtreecommitdiff
path: root/libs/ardour/audiosource.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-03-31 09:35:06 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-03-31 09:35:06 -0400
commit8388e82fd39fc8babf09a5ff6a968f073ddf4a7c (patch)
treeae77af4974cd14b1d750159213062d297e535e72 /libs/ardour/audiosource.cc
parent153e57269689bb118b2e560cf01270a35ef1770f (diff)
more work on the suprisingly ongoing filename/path/origin issue
Diffstat (limited to 'libs/ardour/audiosource.cc')
-rw-r--r--libs/ardour/audiosource.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc
index 5b60c577ee..74dd52d504 100644
--- a/libs/ardour/audiosource.cc
+++ b/libs/ardour/audiosource.cc
@@ -207,7 +207,7 @@ AudioSource::rename_peakfile (string newpath)
}
int
-AudioSource::initialize_peakfile (bool newfile, string audio_path)
+AudioSource::initialize_peakfile (string audio_path)
{
struct stat statbuf;
@@ -215,7 +215,7 @@ AudioSource::initialize_peakfile (bool newfile, string audio_path)
/* if the peak file should be there, but isn't .... */
- if (!newfile && !Glib::file_test (peakpath.c_str(), Glib::FILE_TEST_EXISTS)) {
+ if (!empty() && !Glib::file_test (peakpath.c_str(), Glib::FILE_TEST_EXISTS)) {
peakpath = find_broken_peakfile (peakpath, audio_path);
}
@@ -269,7 +269,7 @@ AudioSource::initialize_peakfile (bool newfile, string audio_path)
}
}
- if (!newfile && !_peaks_built && _build_missing_peakfiles && _build_peakfiles) {
+ if (!empty() && !_peaks_built && _build_missing_peakfiles && _build_peakfiles) {
build_peaks_from_scratch ();
}