]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODFORM-23
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 9 Feb 2009 00:51:42 +0000 (00:51 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 9 Feb 2009 00:51:42 +0000 (00:51 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11698 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/formats/mod_sndfile/mod_sndfile.c

index d1db8f09a2997e40933504fab3aa383665146dec..b98410ceca65fc9c45f90e576a587421909bb7a9 100644 (file)
@@ -66,7 +66,11 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, const cha
        size_t alt_len = 0;
        int rates[4] = {8000, 16000, 32000, 48000};
        int i;
+#ifdef WIN32
+       char ps[2] = {'\\', '/'};
+#else
        char ps[2] = {'/', '\\'};
+#endif
        int x;
 
        if ((ext = strrchr(path, '.')) == 0) {
@@ -175,9 +179,6 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, const cha
                                }
                        }
                }
-#ifndef WIN32
-               break;
-#endif
        }
 
        if (!context->handle) {