$NetBSD: patch-zz,v 1.2 2014/05/07 18:44:28 wiz Exp $ https://bugs.xine-project.org/show_bug.cgi?id=517 --- src/xitk/panel.c.orig 2006-06-29 14:08:13.000000000 +0000 +++ src/xitk/panel.c 2007-06-07 02:13:51.000000000 +0000 @@ -152,6 +152,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); @@ -368,8 +370,6 @@ int pos, secs; int i = 0; - pthread_detach(pthread_self()); - while(gGui->on_quit == 0) { if(gGui->stream) {