Use GStatBuf in AudioSource::initialize_peakfile for portability
authorTim Mayberry <mojofunk@gmail.com>
Sat, 25 Jul 2015 10:17:17 +0000 (20:17 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Sat, 25 Jul 2015 13:14:51 +0000 (23:14 +1000)
This was initially part of f89a976f that got reverted

libs/ardour/audiosource.cc

index 9f52e847a057c1b8c241dc74ce2942559463989e..cf36a9155e99f65b1d6dc1e4e220ccce425e8c22 100644 (file)
@@ -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) {