one more tweak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9806 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-10-02 21:18:33 +00:00
parent 1426e844c5
commit 7c9aaf3b4a
1 changed files with 8 additions and 1 deletions

View File

@ -584,7 +584,14 @@ SWITCH_STANDARD_API(start_local_stream_function)
shuffle = argv[3] ? switch_true(argv[3]) : 1; shuffle = argv[3] ? switch_true(argv[3]) : 1;
prebuf = argv[4] ? atoi(argv[4]) : DEFAULT_PREBUFFER_SIZE; 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; interval = argv[6] ? atoi(argv[6]) : 20;
if (!SWITCH_ACCEPTABLE_INTERVAL(interval)){ if (!SWITCH_ACCEPTABLE_INTERVAL(interval)){