handle no audio-output AUs
[ardour.git] / libs / ardour / midi_stretch.cc
index 71ffcc21e111319f34f747a5c09b9eeeecd5579d..70f44e19c1561c727ac465353565241f326302d1 100644 (file)
@@ -26,7 +26,7 @@
 #include "ardour/midi_stretch.h"
 #include "ardour/types.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace ARDOUR;
@@ -114,8 +114,8 @@ MidiStretch::run (boost::shared_ptr<Region> r, Progress*)
        new_src->copy_interpolation_from (src);
 
        const int ret = finish (region, nsrcs, new_name);
-
-       results[0]->set_length((framecnt_t) floor (r->length() * _request.time_fraction));
+       /* non-musical */
+       results[0]->set_length((framecnt_t) floor (r->length() * _request.time_fraction), 0);
 
        return ret;
 }