mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
define a global null_frame object so when queueing a null frame, you don't
have to allocate one on the stack git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -206,7 +206,6 @@ enum volume_action {
|
||||
};
|
||||
|
||||
static int admin_exec(struct ast_channel *chan, void *data);
|
||||
static struct ast_frame null_frame = { AST_FRAME_NULL, };
|
||||
|
||||
static void *recordthread(void *args);
|
||||
|
||||
@@ -1574,7 +1573,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
|
||||
if (conf->transpath[index]) {
|
||||
conf->transframe[index] = ast_translate(conf->transpath[index], conf->origframe, 0);
|
||||
if (!conf->transframe[index])
|
||||
conf->transframe[index] = &null_frame;
|
||||
conf->transframe[index] = &ast_null_frame;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user