]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 13 Feb 2007 02:31:17 +0000 (02:31 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 13 Feb 2007 02:31:17 +0000 (02:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4219 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/formats/mod_sndfile/mod_sndfile.c

index 60fa69ff66eea438eee06766deef08950acfef25..58a10bdd7aebddb2a97183663a42ae8e21193390 100644 (file)
@@ -106,11 +106,10 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, char *pat
                        context->sfinfo.format |= map->format;
                        ready = 1;
                }
-       } else if (map) {
-               ready = 1;
+       } else {
+               ready = 0;
        }
 
-
        if (!ready) {
                ready = 1;
                if (!strcmp(ext, "r8") || !strcmp(ext, "raw")) {