diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index 92d35ab1d3..d8c25b0200 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -228,7 +228,7 @@ AudioSource::initialize_peakfile (string audio_path) peakpath = find_broken_peakfile (peakpath, audio_path); } - if (stat (peakpath.c_str(), &statbuf)) { + if (g_stat (peakpath.c_str(), &statbuf)) { if (errno != ENOENT) { /* it exists in the peaks dir, but there is some kind of error */