Use GStatBuf in AudioSource::initialize_peakfile for portability

This was initially part of f89a976f that got reverted
This commit is contained in:
Tim Mayberry 2015-07-25 20:17:17 +10:00
parent 0d356174ae
commit e88f74cbb0

View 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) {