[Freeswitch-svn] [commit] r9806 - freeswitch/trunk/src/mod/formats/mod_local_stream

Freeswitch SVN brian at freeswitch.org
Thu Oct 2 17:18:34 EDT 2008


Author: brian
Date: Thu Oct  2 17:18:33 2008
New Revision: 9806

Modified:
   freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c

Log:
one more tweak

Modified: freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c	(original)
+++ freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c	Thu Oct  2 17:18:33 2008
@@ -584,7 +584,14 @@
 
 	shuffle = argv[3] ? switch_true(argv[3]) : 1;
 	prebuf = argv[4] ? atoi(argv[4]) : DEFAULT_PREBUFFER_SIZE;
-	channels = argv[5] ? (uint8_t)atoi(argv[5]) : 1;
+
+	if (argv[5]) {
+		tmp = atoi(argv[5]);
+		if (tmp == 1 || tmp == 2) {
+			channels = tmp;
+		}
+	}
+
 	interval = argv[6] ? atoi(argv[6]) : 20;
 	
 	if (!SWITCH_ACCEPTABLE_INTERVAL(interval)){



More information about the Freeswitch-svn mailing list