ast_verbose(VERBOSE_PREFIX_2"Unregistered translator '%s' from format %s to %s\n",term_color(tmp,t->name,COLOR_MAGENTA,COLOR_BLACK,sizeof(tmp)),ast_getformatname(1<<t->srcfmt),ast_getformatname(1<<t->dstfmt));
found=1;
break;
}
}
AST_LIST_TRAVERSE_SAFE_END;
rebuild_matrix(0);
if(found)
rebuild_matrix(0);
AST_LIST_UNLOCK(&translators);
return(u?0:-1);
}
@ -850,6 +857,11 @@ unsigned int ast_translate_available_formats(unsigned int dest, unsigned int src
tothisformat,removeitfromtheresult*/
if(!tr_matrix[src_audio][powerof(x)].step)
res&=~x;
/* now check the opposite direction */
if(!tr_matrix[powerof(x)][src_audio].step)
res&=~x;
}
/* For a given source video format, traverse the list of
@ -870,6 +882,10 @@ unsigned int ast_translate_available_formats(unsigned int dest, unsigned int src