mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
chan_sip: Fix type mismatch when the format is changed.
Symptom is most likely an invalid ao2 object bad magic number message or a less likely crash. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@420881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4736,12 +4736,12 @@ static int sip_setoption(struct ast_channel *chan, int option, void *data, int d
|
||||
switch (option) {
|
||||
case AST_OPTION_FORMAT_READ:
|
||||
if (p->rtp) {
|
||||
res = ast_rtp_instance_set_read_format(p->rtp, (struct ast_format *) data);
|
||||
res = ast_rtp_instance_set_read_format(p->rtp, *(struct ast_format **) data);
|
||||
}
|
||||
break;
|
||||
case AST_OPTION_FORMAT_WRITE:
|
||||
if (p->rtp) {
|
||||
res = ast_rtp_instance_set_write_format(p->rtp, (struct ast_format *) data);
|
||||
res = ast_rtp_instance_set_write_format(p->rtp, *(struct ast_format **) data);
|
||||
}
|
||||
break;
|
||||
case AST_OPTION_DIGIT_DETECT:
|
||||
|
Reference in New Issue
Block a user