add: if (gtx->priv->stream == NULL) { g_value_set_int (value, 0); return; }
context: gtk_xine_get_metadata_int (GtkXine *gtx, GtkXineMetadataType type,		GValue *value){	int integer;	g_value_init (value, G_TYPE_INT);	switch (type)	{	case GTX_INFO_DURATION:		integer = gtk_xine_get_stream_length (gtx) / 1000;		break;	case GTX_INFO_DIMENSION_X:		integer = xine_get_stream_info (gtx->priv->stream,				XINE_STREAM_INFO_VIDEO_WIDTH);		break;	case GTX_INFO_DIMENSION_Y:		integer = xine_get_stream_info (gtx->priv->stream,				XINE_STREAM_INFO_VIDEO_HEIGHT);		break;	case GTX_INFO_FPS:		if (xine_get_stream_info (gtx->priv->stream,					XINE_STREAM_INFO_FRAME_DURATION) != 0)		{			integer = 90000 / xine_get_stream_info				(gtx->priv->stream,				 XINE_STREAM_INFO_FRAME_DURATION);		} else {			integer = 0;		}		break;	 case GTX_INFO_BITRATE:		integer = xine_get_stream_info (gtx->priv->stream,				XINE_STREAM_INFO_AUDIO_BITRATE) / 1000;		break;	 default:		g_assert_not_reached ();	 }	 g_value_set_int (value, integer);	 return;}