13
0

Use g_stat in AudioSource::initialize_peakfile for portability

This commit is contained in:
Paul Davis 2013-07-15 12:41:53 -04:00
parent 4a8aadbbdf
commit 3e1c66f946

View 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 */