From c1bf143f192e3c7b72470732b36e594de7f6aafc Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 28 Dec 2005 05:58:57 +0000 Subject: [PATCH] fix sndfile msvc build. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@218 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/mod_sndfile/mod_sndfile.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mod/mod_sndfile/mod_sndfile.c b/src/mod/mod_sndfile/mod_sndfile.c index 0b70c054dd..5dc21aa933 100644 --- a/src/mod/mod_sndfile/mod_sndfile.c +++ b/src/mod/mod_sndfile/mod_sndfile.c @@ -189,16 +189,16 @@ switch_status sndfile_file_write (switch_file_handle *handle, void *data, size_t /* Registration */ -static char *supported_formats[0]; +static char **supported_formats; -static const switch_file_interface sndfile_file_interface = { +static switch_file_interface sndfile_file_interface = { /*.interface_name*/ modname, /*.file_open*/ sndfile_file_open, /*.file_close*/ sndfile_file_close, /*.file_read*/ sndfile_file_read, /*.file_write*/ sndfile_file_write, /*.file_seek*/ sndfile_file_seek, - /*.extens*/ supported_formats, + /*.extens*/ NULL, /*.next*/ NULL, }; @@ -286,6 +286,7 @@ SWITCH_MOD_DECLARE(switch_status) switch_module_load(switch_loadable_module_inte } /* connect my internal structure to the blank pointer passed to me */ + sndfile_file_interface.extens = supported_formats; *interface = &sndfile_module_interface; /* indicate that the module should continue to be loaded */