Use g_stat in AudioSource::initialize_peakfile for portability
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 15 Jul 2013 16:41:53 +0000 (12:41 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 15 Jul 2013 16:41:53 +0000 (12:41 -0400)
libs/ardour/audiosource.cc

index 92d35ab1d38633b8802dbc1e642eaa236bf8aca1..d8c25b02002f1f092a614ba19c02f807b6fe9c4b 100644 (file)
@@ -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 */