add: if (bvw->priv->stream == NULL) return FALSE;
context: generate_mouse_event (BaconVideoWidget *bvw, GdkEvent *event,		gboolean is_motion){	GdkEventMotion *mevent = (GdkEventMotion *) event;	GdkEventButton *bevent = (GdkEventButton *) event;	int x, y;	gboolean retval;	if (is_motion == FALSE && bevent->button != 1)		return FALSE;	if (is_motion != FALSE)		retval = video_window_translate_point (bvw,				mevent->x, mevent->y, &x, &y);	else		retval = video_window_translate_point (bvw,				bevent->x, bevent->y, &x, &y);	if (retval != FALSE)	{		xine_event_t event;		xine_input_data_t input;		if (is_motion != FALSE)		{			event.type = XINE_EVENT_INPUT_MOUSE_MOVE;			input.button = 0; /* Just motion. */		} else {			event.type = XINE_EVENT_INPUT_MOUSE_BUTTON;			input.button = 1;		}		input.x = x;		input.y = y;		event.stream = bvw->priv->stream;		event.data = &input;		event.data_length = sizeof(input);		xine_event_send (bvw->priv->stream,				(xine_event_t *) (&event));		return TRUE;	}	return FALSE;}