Exemple #1
0
void ms_init(){
	int i;
	MSSndCardManager *cm;

#if !defined(_WIN32_WCE)
	if (getenv("MEDIASTREAMER_DEBUG")!=NULL){
		ortp_set_log_level_mask(ORTP_DEBUG|ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
	}
#endif
	ms_message("Registering all filters...");
	/* register builtin MSFilter's */
	for (i=0;ms_filter_descs[i]!=NULL;i++){
		ms_filter_register(ms_filter_descs[i]);
	}
	ms_message("Registering all soundcard handlers");
	cm=ms_snd_card_manager_get();
	for (i=0;ms_snd_card_descs[i]!=NULL;i++){
		ms_snd_card_manager_register_desc(cm,ms_snd_card_descs[i]);
	}

#ifdef VIDEO_ENABLED
	ms_message("Registering all webcam handlers");
	{
		MSWebCamManager *wm;
		wm=ms_web_cam_manager_get();
		for (i=0;ms_web_cam_descs[i]!=NULL;i++){
			ms_web_cam_manager_register_desc(wm,ms_web_cam_descs[i]);
		}
	}
	__register_ffmpeg_encoders_if_possible();
#endif
	ms_message("Loading plugins");
	ms_load_plugins(PACKAGE_PLUGINS_DIR);
	ms_message("ms_init() done");
}
Exemple #2
0
void sip_setup_register_all(void){
	SipSetup **p=all_sip_setups;
	ms_load_plugins(LINPHONE_PLUGINS_DIR);
	while(*p!=NULL){
		sip_setup_register(*p);
		p++;
	}
}
Exemple #3
0
void ms_plugins_init(void) {
	if (plugins_dir == NULL) {
#ifdef PACKAGE_PLUGINS_DIR
		plugins_dir = ms_strdup(PACKAGE_PLUGINS_DIR);
#else
		plugins_dir = ms_strdup("");
#endif
	}
	if (strlen(plugins_dir) > 0) {
		ms_message("Loading ms plugins from [%s]",plugins_dir);
		ms_load_plugins(plugins_dir);
	}
}
Exemple #4
0
void ms_plugins_init(void) {
	if (ms_plugins_ref++ >0 ) {
		ms_message ("Skiping ms_plugins_init, because [%i] ref",ms_plugins_ref);
		return;
	}
	if (plugins_dir == NULL) {
#ifdef PACKAGE_PLUGINS_DIR
		plugins_dir = ms_strdup(PACKAGE_PLUGINS_DIR);
#else
		plugins_dir = ms_strdup("");
#endif
	}
	if (strlen(plugins_dir) > 0) {
		ms_message("Loading ms plugins from [%s]",plugins_dir);
		ms_load_plugins(plugins_dir);
	}
}
Exemple #5
0
void ms_plugins_init(void) {
#ifdef PACKAGE_PLUGINS_DIR
	ms_message("Loading ms plugins from [%s]",PACKAGE_PLUGINS_DIR);
	ms_load_plugins(PACKAGE_PLUGINS_DIR);
#endif
}