shithub: aubio

Download patch

ref: 51a35a7513cce2e8a302887dc8fa3a6a318b90c1
parent: a9f463c7d49a3b4727de8ca17aaa5ac7366baeab
author: Paul Brossier <piem@piem.org>
date: Fri Dec 21 10:26:52 EST 2018

[source_apple_audio] get_duration returns 0 on failure

--- a/src/io/source_apple_audio.c
+++ b/src/io/source_apple_audio.c
@@ -344,7 +344,7 @@
     AUBIO_ERROR("source_apple_audio: Failed getting %s duration, "
         "error in ExtAudioFileGetProperty (%s)\n", s->path,
         getPrintableOSStatusError(errorstr, err));
-    return err;
+    return 0;
   }
   return (uint_t)fileLengthFrames;
 }