]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Don't use the portaudio dual_streams stuff on Solaris, it makes it break
authorAndrew Thompson <andrew@hijacked.us>
Tue, 20 Jan 2009 19:50:54 +0000 (19:50 +0000)
committerAndrew Thompson <andrew@hijacked.us>
Tue, 20 Jan 2009 19:50:54 +0000 (19:50 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11316 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_portaudio/mod_portaudio.c

index a821f9d15ee4de3e376403c2deb34c8731011748..62ce978901134e0576fd79c45d94ab8780f168a7 100644 (file)
@@ -739,7 +739,12 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_portaudio_load)
 
        memset(&globals, 0, sizeof(globals));
 
+       /* dual streams makes portaudio on solaris choke */
+#if defined(sun) || defined(__sun)
+       globals.dual_streams = 0;
+#else
        globals.dual_streams = 1;
+#endif
 
        if ((status = load_config()) != SWITCH_STATUS_SUCCESS) {
                return status;