mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 08:44:14 +00:00
lock list of translators *before* recalculating translation matrix.
Also, store translators using linked list macros. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7967 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -31,6 +31,7 @@ extern "C" {
|
||||
|
||||
#include "asterisk/frame.h"
|
||||
#include "asterisk/plc.h"
|
||||
#include "asterisk/linkedlists.h"
|
||||
|
||||
/* Declared by individual translators */
|
||||
struct ast_translator_pvt;
|
||||
@@ -57,7 +58,7 @@ struct ast_translator {
|
||||
/*! Cost in milliseconds for encoding/decoding 1 second of sound */
|
||||
int cost;
|
||||
/*! For linking, not to be modified by the translator */
|
||||
struct ast_translator *next;
|
||||
AST_LIST_ENTRY(ast_translator) list;
|
||||
};
|
||||
|
||||
struct ast_trans_pvt;
|
||||
|
Reference in New Issue
Block a user