diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-07-25 20:17:17 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2015-07-25 23:14:51 +1000 |
commit | e88f74cbb0411e38aaae9cbd48d1b7f0c55b2e2a (patch) | |
tree | b69ea1984f9b38bb61f0096e6ae29b35e072c917 /libs/ardour/audiosource.cc | |
parent | 0d356174aec9180f025f544504e3d2f5db91dc83 (diff) |
Use GStatBuf in AudioSource::initialize_peakfile for portability
This was initially part of f89a976f that got reverted
Diffstat (limited to 'libs/ardour/audiosource.cc')
-rw-r--r-- | libs/ardour/audiosource.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index 9f52e847a0..cf36a9155e 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -270,8 +270,8 @@ AudioSource::initialize_peakfile (string audio_path) _peaks_built = false; } else { // Check if the audio file has changed since the peakfile was built. - struct stat stat_file; - int err = stat (audio_path.c_str(), &stat_file); + GStatBuf stat_file; + int err = g_stat (audio_path.c_str(), &stat_file); if (err) { |