rem: gtx->priv->init_finished = TRUE;
context: xine_thread (void *gtx_gen){	GtkXine *gtx = (GtkXine *) gtx_gen;	XEvent event;	gtx->priv->init_finished = TRUE;	while (1)	{		if (gtx->priv->stream == NULL)			break;		if (XPending (gtx->priv->display))		{			XNextEvent (gtx->priv->display, &event);		} else {			usleep (100);			continue;		}		if (event.type == gtx->priv->completion_event)		{			xine_gui_send_vo_data (gtx->priv->stream,					XINE_GUI_SEND_COMPLETION_EVENT,					&event);		}	}	pthread_exit (NULL);	return NULL;}