mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-01 11:02:53 +00:00
fix nested brackets
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6172 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
3c470c8943
commit
14396001d2
@ -37,9 +37,9 @@
|
||||
#include <lame.h>
|
||||
#include <curl/curl.h>
|
||||
|
||||
#define OUTSCALE 8192
|
||||
#define MP3_SCACHE 16384
|
||||
#define MP3_DCACHE 8192
|
||||
#define OUTSCALE 8192 * 2
|
||||
#define MP3_SCACHE 16384 * 2
|
||||
#define MP3_DCACHE 8192 *2
|
||||
|
||||
SWITCH_MODULE_LOAD_FUNCTION(mod_shout_load);
|
||||
SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_shout_shutdown);
|
||||
|
@ -1355,6 +1355,15 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
|
||||
*e++ = '\0';
|
||||
break;
|
||||
}
|
||||
|
||||
if (br > 0) {
|
||||
if (e != s && *e == '{') {
|
||||
br++;
|
||||
} else if (br > 1 && *e == '}') {
|
||||
br--;
|
||||
}
|
||||
}
|
||||
|
||||
e++;
|
||||
}
|
||||
p = e;
|
||||
@ -1380,7 +1389,7 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
|
||||
|
||||
if (stream.data) {
|
||||
char *expanded = NULL;
|
||||
|
||||
|
||||
if ((expanded = switch_channel_expand_variables(channel, vval)) == vval) {
|
||||
expanded = NULL;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user