]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5430 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 15 May 2013 14:27:18 +0000 (09:27 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 15 May 2013 14:27:44 +0000 (09:27 -0500)
conf/vanilla/autoload_configs/portaudio.conf.xml
src/mod/endpoints/mod_portaudio/conf/autoload_configs/portaudio.conf.xml
src/mod/endpoints/mod_portaudio/mod_portaudio.c

index 02c21ef449189798d8e5fb99ed0e569e428b3bd6..a715571c6ff2bec8233fb73add3b85cc1633dd23 100644 (file)
@@ -31,6 +31,9 @@
     <!--audio sample rate and interval -->
     <param name="sample-rate" value="48000"/>
     <param name="codec-ms" value="20"/>
+
+    <!--uncomment the following line to make mod_portaudio fail to load if it fails to find a device-->
+    <!-- <param name="unload-on-device-fail" value="true"/> -->
   </settings>
 
   <!-- 
index 1a69eeb43b3a0b313d13003a45648171a106e282..a715571c6ff2bec8233fb73add3b85cc1633dd23 100644 (file)
@@ -33,7 +33,7 @@
     <param name="codec-ms" value="20"/>
 
     <!--uncomment the following line to make mod_portaudio fail to load if it fails to find a device-->
-    <param name="unload-on-device-fail" value="true"/>
+    <!-- <param name="unload-on-device-fail" value="true"/> -->
   </settings>
 
   <!-- 
index 115de3d616d8fbb97a5e87c15fa5f94f3857add7..ce070e72b70baf349de3aeb927eb8534cd5211ae 100644 (file)
@@ -2453,10 +2453,6 @@ audio_stream_t *get_audio_stream(int indev, int outdev)
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error invalid output audio device\n");
                return NULL;
        }
-       if (indev == -1) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error invalid input audio device\n");
-               return NULL;
-       }
        if (create_codecs(0) != SWITCH_STATUS_SUCCESS) {
                return NULL;
        }