tweaks to codec buffer size detection

This commit is contained in:
Anthony Minessale
2011-07-14 00:14:10 -05:00
parent 8f4ab3eb3c
commit d2f76ca482
3 changed files with 8 additions and 4 deletions

View File

@@ -175,8 +175,9 @@ static switch_status_t switch_loadable_module_process(char *key, switch_loadable
if (impl->decoded_bytes_per_packet > SWITCH_RECOMMENDED_BUFFER_SIZE) {
load_interface = 0;
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT,
"Failed to load codec interface %s from %s due to bytes per frame exceeding buffer size.\n", ptr->interface_name,
key);
"Failed to load codec interface %s from %s due to bytes per frame %d exceeding buffer size %d.\n",
ptr->interface_name,
key, impl->decoded_bytes_per_packet, SWITCH_RECOMMENDED_BUFFER_SIZE);
break;
}
}