From: Brian West Date: Thu, 2 Oct 2008 21:18:33 +0000 (+0000) Subject: one more tweak X-Git-Tag: v1.0.2~986 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c9aaf3b4a3c705d0f8ed0052ba7f5f54e52014b;p=thirdparty%2Ffreeswitch.git one more tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9806 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/formats/mod_local_stream/mod_local_stream.c b/src/mod/formats/mod_local_stream/mod_local_stream.c index 81e8978419..85c7156e63 100644 --- a/src/mod/formats/mod_local_stream/mod_local_stream.c +++ b/src/mod/formats/mod_local_stream/mod_local_stream.c @@ -584,7 +584,14 @@ SWITCH_STANDARD_API(start_local_stream_function) 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)){