From 25963d7a576febf692d5f333dfe504af54c40c0c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 13 Feb 2007 02:31:17 +0000 Subject: [PATCH] doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4219 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/formats/mod_sndfile/mod_sndfile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mod/formats/mod_sndfile/mod_sndfile.c b/src/mod/formats/mod_sndfile/mod_sndfile.c index 60fa69ff66..58a10bdd7a 100644 --- a/src/mod/formats/mod_sndfile/mod_sndfile.c +++ b/src/mod/formats/mod_sndfile/mod_sndfile.c @@ -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")) {