/* Define SCHED_MULTITHREADED to run the scheduler in a special
multithreaded mode. */
-#define SCHED_MULTITHREADED
+// #define SCHED_MULTITHREADED
/* Define DEBUG_SCHED_MULTITHREADED to keep track of where each
thread is actually doing. */
-#define DEBUG_SCHED_MULTITHREAD
+// #define DEBUG_SCHED_MULTITHREAD
#ifdef NEWJB
#include "../jitterbuf.h"
source = powerof(source);
dest = powerof(dest);
- while(source != dest) {
+ while (source != dest) {
if (!tr_matrix[source][dest].step) {
/* We shouldn't have allocated any memory */
ast_log(LOG_WARNING, "No translator path from %s to %s\n",
}
if (tmp) {
- tmp->next = malloc(sizeof(*tmp));
+ tmp->next = ast_malloc(sizeof(*tmp));
tmp = tmp->next;
} else
- tmp = malloc(sizeof(*tmp));
+ tmp = ast_malloc(sizeof(*tmp));
if (!tmp) {
- ast_log(LOG_WARNING, "Out of memory\n");
if (tmpr)
ast_translator_free_path(tmpr);
return NULL;