mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-7500 FS-7513: add video bandwidth control function and use it in mod_conference
This commit is contained in:
@@ -985,7 +985,9 @@ static inline uint32_t switch_parse_bandwidth_string(const char *bwv)
|
||||
if (bwv && (bw = (int32_t) atol(bwv))) {
|
||||
if (bw < 0) return 0;
|
||||
|
||||
if (switch_stristr("KB", bwv)) {
|
||||
if (!strcasecmp(bwv, "auto")) {
|
||||
return -1;
|
||||
} else if (switch_stristr("KB", bwv)) {
|
||||
bw *= 8;
|
||||
} else if (switch_stristr("mb", bwv)) {
|
||||
bw *= 1024;
|
||||
|
||||
Reference in New Issue
Block a user