]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fs_encode: load mod_spandsp before loading mod_native_file so that the latter picks...
authorMichael S Collins <msc@freeswitch.org>
Fri, 22 Mar 2013 23:40:42 +0000 (16:40 -0700)
committerMichael S Collins <msc@freeswitch.org>
Fri, 22 Mar 2013 23:40:42 +0000 (16:40 -0700)
src/fs_encode.c

index b1beb36b43bae66658514ed27f7776c5e32ec0b9..be28da01e34848c87769a5cc19b9acb5696fd15c 100644 (file)
@@ -137,6 +137,11 @@ int main(int argc, char *argv[])
                }
        }
        
+       if (switch_loadable_module_load_module((char *) SWITCH_GLOBAL_dirs.mod_dir, (char *) "mod_spandsp", SWITCH_TRUE, &err) != SWITCH_STATUS_SUCCESS) {
+               fprintf(stderr, "Cannot init mod_spandsp [%s]\n", err);
+               goto end;
+       }
+       
        if (switch_loadable_module_load_module((char *) SWITCH_GLOBAL_dirs.mod_dir, (char *) "mod_sndfile", SWITCH_TRUE, &err) != SWITCH_STATUS_SUCCESS) {
                fprintf(stderr, "Cannot init mod_sndfile [%s]\n", err);
                goto end;
@@ -147,11 +152,6 @@ int main(int argc, char *argv[])
                goto end;
        }
 
-       if (switch_loadable_module_load_module((char *) SWITCH_GLOBAL_dirs.mod_dir, (char *) "mod_spandsp", SWITCH_TRUE, &err) != SWITCH_STATUS_SUCCESS) {
-               fprintf(stderr, "Cannot init mod_spandsp [%s]\n", err);
-               goto end;
-       }
-       
        switch_core_new_memory_pool(&pool);
        if (verbose) {
                fprintf(stderr, "Opening file %s\n", input);