diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-09-12 19:10:04 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-09-12 19:10:04 +0000 |
commit | 71df552f0a85858f2119adafcbd70fc851444257 (patch) | |
tree | 77cc368bd4d4c2d82b4a9622c8a10b24116f4e04 /libs/ardour/audiosource.cc | |
parent | 0a38cee852134ff5d2632c02517e2a00e2c52ca2 (diff) |
make big clock be on top ALWAYS; more design fixes for async peak building; fix up peakfile name screw up but WITHOUT back-compatibility
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2461 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audiosource.cc')
-rw-r--r-- | libs/ardour/audiosource.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index c8a557808c..787ac8be08 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -30,6 +30,8 @@ #include <algorithm> #include <vector> +#include <glibmm/fileutils.h> + #include <pbd/xml++.h> #include <pbd/pthread_utils.h> @@ -136,7 +138,7 @@ AudioSource::peaks_ready (sigc::slot<void> the_slot, sigc::connection& conn) con if (!(ret = _peaks_built)) { conn = PeaksReady.connect (the_slot); } - + return ret; } @@ -187,7 +189,7 @@ AudioSource::initialize_peakfile (bool newfile, ustring audio_path) used libsndfile for all audio files. */ - if (!newfile && access (peakpath.c_str(), R_OK) != 0) { + if (!newfile && !Glib::file_test (peakpath.c_str(), Glib::FILE_TEST_EXISTS)) { ustring str = old_peak_path (audio_path); if (access (str.c_str(), R_OK) == 0) { peakpath = str; |