add control for buggy gradient option
[ardour.git] / gtk2_ardour / editor_timefx.cc
index 33259a398b029c218bb97568d58aa0e6076fd0d3..2025ec70c3e2a8767435441107e5db9a53d5d538 100644 (file)
@@ -76,6 +76,7 @@ Editor::time_stretch (RegionSelection& regions, float fraction)
        }
 
        if ((aret = time_fx (audio, fraction, false)) != 0) {
+               commit_reversible_command ();
                return aret;
        }
 
@@ -402,8 +403,8 @@ Editor::timefx_thread (void *arg)
            by the GUI ...
         */
 
-#ifdef WIN32
-       Sleep(2000);
+#ifdef PLATFORM_WINDOWS
+       Glib::usleep(2 * G_USEC_PER_SEC);
 #else
         struct timespec t = { 2, 0 };
         nanosleep (&t, 0);