From 2356e4d43f2f99e363b731e370f2dd179f8a2d42 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 6 Apr 2006 02:55:09 +0000 Subject: [PATCH] make mod_sndfile less chatty on startup git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1060 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/formats/mod_sndfile/mod_sndfile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/formats/mod_sndfile/mod_sndfile.c b/src/mod/formats/mod_sndfile/mod_sndfile.c index 7e4f088716..b967339dc4 100644 --- a/src/mod/formats/mod_sndfile/mod_sndfile.c +++ b/src/mod/formats/mod_sndfile/mod_sndfile.c @@ -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; }