make mod_sndfile less chatty on startup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1060 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
de88d7e8bd
commit
2356e4d43f
|
@ -249,6 +249,7 @@ static switch_status setup_formats(void)
|
|||
char *extras[] = { "r8", "r16", "r24", "r32", "gsm", NULL };
|
||||
int exlen = (sizeof(extras) / sizeof(extras[0]));
|
||||
buffer[0] = 0;
|
||||
|
||||
sf_command(NULL, SFC_GET_LIB_VERSION, buffer, sizeof(buffer));
|
||||
if (strlen(buffer) < 1) {
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE_CLEAN, "Line %d: could not retrieve lib version.\n", __LINE__);
|
||||
|
@ -288,9 +289,11 @@ static switch_status setup_formats(void)
|
|||
sf_command(NULL, SFC_GET_FORMAT_SUBTYPE, &info, sizeof(info));
|
||||
format = (format & SF_FORMAT_TYPEMASK) | info.format;
|
||||
sfinfo.format = format;
|
||||
/*
|
||||
if (sf_format_check(&sfinfo)) {
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE_CLEAN, " %s\n", info.name);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -302,6 +305,7 @@ static switch_status setup_formats(void)
|
|||
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE_CLEAN,
|
||||
"================================================================================\n");
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue