rem: TRACE("MediaAddonServer::AddOnAdded: loading addon %d now...\n", id);
add: TRACE("MediaAddonServer::AddOnAdded: loading addon %ld now...\n", id);
context: MediaAddonServer::AddOnAdded(const char *path, ino_t file_node){	TRACE("\n\nMediaAddonServer::AddOnAdded: path %s\n",path);	BMediaAddOn *addon;	media_addon_id id;	id = _DormantNodeManager->RegisterAddon(path);	if (id <= 0) {		FATAL("MediaAddonServer::AddOnAdded: failed to register add-on %s\n", path);		return;	}		TRACE("MediaAddonServer::AddOnAdded: loading addon %d now...\n", id);	addon = _DormantNodeManager->GetAddon(id);	if (addon == NULL) {		FATAL("MediaAddonServer::AddOnAdded: failed to get add-on %s\n", path);		_DormantNodeManager->UnregisterAddon(id);		return;	}	TRACE("MediaAddonServer::AddOnAdded: loading finished, id %ld\n", id);	// put file's inode and addon's id into map	filemap->Insert(file_node, id);		// also create AddOnInfo struct and get a pointer so	// we can modify it	AddOnInfo tempinfo;	infomap->Insert(id, tempinfo);	AddOnInfo *info;	infomap->Get(id, &info);	// setup	info->id = id;	info->wants_autostart = false; // temporary default	info->flavor_count = 0;	info->addon = addon; 	// scan the flavors	ScanAddOnFlavors(addon);	// need to call BMediaNode::WantsAutoStart()	// after the flavors have been scanned	info->wants_autostart = addon->WantsAutoStart();		if (info->wants_autostart)		FATAL("#### add-on %ld WantsAutoStart!\n", id);	// During startup, first all add-ons are loaded, then all	// nodes (flavors) representing physical inputs and outputs	// are instantiated. Next, all add-ons that need autostart	// will be autostarted. Finally, add-ons that don't have	// any active nodes (flavors) will be unloaded.	// After startup is done, we simply do it for each new	// loaded add-on, too.	if (!fStartup) {		InstantiatePhysialInputsAndOutputs(info);		InstantiateAutostartFlavors(info);		PutAddonIfPossible(info);		// since something might have changed		server_rescan_defaults_command cmd;		SendToServer(SERVER_RESCAN_DEFAULTS, &cmd, sizeof(cmd));		}	// we do not call _DormantNodeManager->PutAddon(id)	// since it is done by PutAddonIfPossible()}