projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d35617
)
Use GStatBuf in AudioSource::initialize_peakfile for portability
author
Tim Mayberry
<mojofunk@gmail.com>
Sat, 25 Jul 2015 10:17:17 +0000
(20:17 +1000)
committer
Tim 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
patch
|
blob
|
history
diff --git
a/libs/ardour/audiosource.cc
b/libs/ardour/audiosource.cc
index 9f52e847a057c1b8c241dc74ce2942559463989e..cf36a9155e99f65b1d6dc1e4e220ccce425e8c22 100644
(file)
--- a/
libs/ardour/audiosource.cc
+++ b/
libs/ardour/audiosource.cc
@@
-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) {