remove inadvertently committed wine-unstable linkdir
[ardour.git] / gtk2_ardour / editor_timefx.cc
index b942f04ccab67c29e2a5354854e297e88195556a..2528c823b7996ac9f75346ece542476c47378f87 100644 (file)
@@ -45,7 +45,7 @@
 #include "ardour/stretch.h"
 
 #ifdef USE_RUBBERBAND
-#include "rubberband/RubberBandStretcher.h"
+#include <rubberband/RubberBandStretcher.h>
 using namespace RubberBand;
 #endif
 
@@ -308,6 +308,8 @@ Editor::time_fx (RegionList& regions, float val, bool pitching)
                gtk_main_iteration ();
        }
 
+       pthread_join (current_timefx->request.thread, 0);
+
        current_timefx->hide ();
        return current_timefx->status;
 }
@@ -400,9 +402,12 @@ Editor::timefx_thread (void *arg)
            by the GUI ...
         */
 
+#ifdef PLATFORM_WINDOWS
+       Sleep(2000);
+#else
         struct timespec t = { 2, 0 };
         nanosleep (&t, 0);
-
+#endif
        return 0;
 }