projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c26225
)
fix return value for transient load
author
Robin Gareus
<robin@gareus.org>
Thu, 8 Oct 2015 13:26:38 +0000
(15:26 +0200)
committer
Robin Gareus
<robin@gareus.org>
Thu, 8 Oct 2015 13:26:38 +0000
(15:26 +0200)
libs/ardour/source.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/source.cc
b/libs/ardour/source.cc
index c9d5bb243e90b48186af17b7f5dc5b15137a7eb8..f6c591a5b1bbba018058d65a51a7581cd5d6fce0 100644
(file)
--- a/
libs/ardour/source.cc
+++ b/
libs/ardour/source.cc
@@
-187,6
+187,7
@@
Source::set_been_analysed (bool yn)
int
Source::load_transients (const string& path)
{
+ int rv = 0;
FILE *tf;
if (! (tf = g_fopen (path.c_str (), "rb"))) {
return -1;
@@
-196,6
+197,7
@@
Source::load_transients (const string& path)
while (!feof (tf) && !ferror(tf)) {
double val;
if (1 != fscanf (tf, "%lf", &val)) {
+ rv = -1;
break;
}
@@
-204,6
+206,7
@@
Source::load_transients (const string& path)
}
::fclose (tf);
+ return rv;
}
string