select_label deadlock fix
authorGood Guy <good1.2guy@gmail.com>
Thu, 5 Mar 2020 16:52:40 +0000 (09:52 -0700)
committerGood Guy <good1.2guy@gmail.com>
Thu, 5 Mar 2020 16:52:40 +0000 (09:52 -0700)
cinelerra-5.1/cinelerra/ctimebar.C

index b9fb0bded6f608d9f3c165a47a42e0fb89bda39e..d7f5b3ff061c9b9985a4379c783cc27944abe0bc 100644 (file)
@@ -112,16 +112,14 @@ void CTimeBar::select_label(double position)
        }
 
 // Que the CWindow
+       unlock_window();
        mwindow->cwindow->update(1, 0, 0, 0, 1);
-
-//printf("CTimeBar::select_label 1\n");
-
        mwindow->gui->lock_window();
        mwindow->gui->hide_cursor(0);
        mwindow->gui->draw_cursor(1);
        mwindow->gui->update(0, NORMAL_DRAW, 1, 0, 1, 1, 0);
        mwindow->gui->unlock_window();
        mwindow->update_plugin_guis();
-//printf("CTimeBar::select_label 2\n");
+       lock_window("CTimeBar::select_label");
 }