shithub: aubio

Download patch

ref: 4bb2e740abf5b202a1c4f0fc214751fd4e712886
parent: a77f0c672818724881d339105193f59bc9378edb
author: Paul Brossier <piem@piem.org>
date: Thu Dec 6 19:04:07 EST 2018

[effects] aubio_get_rubberband_opts returns -1 if parsing fails

--- a/src/effects/rubberband_utils.c
+++ b/src/effects/rubberband_utils.c
@@ -125,7 +125,7 @@
       else if ( strcmp(params[i], "ChannelsApart" ) == 0 )         rboptions |= RubberBandOptionChannelsApart;
       else if ( strcmp(params[i], "ChannelsTogether" ) == 0 )      rboptions |= RubberBandOptionChannelsTogether;
       else {
-        AUBIO_WRN("rubberband_utils: did not understand option '%s', should be one of: "
+        AUBIO_ERR("rubberband_utils: did not understand option '%s', should be one of: "
           "StretchElastic|StretchPrecise, TransientsCrisp|TransientsMixed|TransientsSmooth, "
           "DetectorCompound|DetectorPercussive|DetectorSoft, PhaseLaminar|PhaseIndependent, "
           "ThreadingAuto|ThreadingNever|ThreadingAlways, WindowStandard|WindowLong|WindowShort, "
@@ -132,6 +132,7 @@
           "SmoothingOn|SmoothingOff, FormantShifted|FormantPreserved, "
           "PitchHighSpeed|PitchHighQuality|PitchHighConsistency, ChannelsApart|ChannelsTogether\n"
           , params[i]);
+        return -1;
       }
       free(params[i]);
     }