From e88f74cbb0411e38aaae9cbd48d1b7f0c55b2e2a Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 25 Jul 2015 20:17:17 +1000 Subject: [PATCH] Use GStatBuf in AudioSource::initialize_peakfile for portability This was initially part of f89a976f that got reverted --- libs/ardour/audiosource.cc | 4 ++-- 1 file 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) {