From: Thomas K. <tk...@gi...> - 2014-05-18 13:34:36
|
# HG changeset patch # User Thomas Klausner <tk...@gi...> # Date 1400420046 -10800 # Node ID cddfd93d5a0ebaa0c1ddbba2d4c58745d2786606 # Branch default # Parent b83d9d58ead6477b12f270949c3135edf5ec0b32 Fix race condition in panel thread when exiting https://bugs.xine-project.org/show_bug.cgi?id=517 diff --git a/src/xitk/panel.c b/src/xitk/panel.c --- a/src/xitk/panel.c +++ b/src/xitk/panel.c @@ -145,6 +145,8 @@ xitk_unregister_event_handler(&panel->widget_key); + pthread_join(panel->slider_thread, NULL); + XLockDisplay(gGui->display); XUnmapWindow(gGui->display, gGui->panel_window); XUnlockDisplay(gGui->display); @@ -361,8 +363,6 @@ int pos, secs; int i = 0; - pthread_detach(pthread_self()); - while(gGui->on_quit == 0) { if(gGui->stream) { |