From 0b2a9dc2971a9179e47a6f4cb044601683a4b90d Mon Sep 17 00:00:00 2001 From: James Golovich Date: Wed, 7 Apr 2004 20:12:42 +0000 Subject: [PATCH] Remove extra argument from ast_set_*_format calls git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2656 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_rpt.c | 8 ++++---- channels/chan_h323.c | 4 ++-- channels/chan_mgcp.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/app_rpt.c b/apps/app_rpt.c index 9e9d26f721..c99a06ae61 100755 --- a/apps/app_rpt.c +++ b/apps/app_rpt.c @@ -378,8 +378,8 @@ pthread_attr_t attr; myrpt->rxchannel = ast_request(myrpt->rxchanname,AST_FORMAT_SLINEAR,tele); if (myrpt->rxchannel) { - ast_set_read_format(myrpt->rxchannel,AST_FORMAT_SLINEAR, 0); - ast_set_write_format(myrpt->rxchannel,AST_FORMAT_SLINEAR, 0); + ast_set_read_format(myrpt->rxchannel,AST_FORMAT_SLINEAR); + ast_set_write_format(myrpt->rxchannel,AST_FORMAT_SLINEAR); myrpt->rxchannel->whentohangup = 0; myrpt->rxchannel->appl = "Apprpt"; myrpt->rxchannel->data = "(Repeater Rx)"; @@ -405,8 +405,8 @@ pthread_attr_t attr; myrpt->txchannel = ast_request(myrpt->txchanname,AST_FORMAT_SLINEAR,tele); if (myrpt->txchannel) { - ast_set_read_format(myrpt->txchannel,AST_FORMAT_SLINEAR, 0); - ast_set_write_format(myrpt->txchannel,AST_FORMAT_SLINEAR, 0); + ast_set_read_format(myrpt->txchannel,AST_FORMAT_SLINEAR); + ast_set_write_format(myrpt->txchannel,AST_FORMAT_SLINEAR); myrpt->txchannel->whentohangup = 0; myrpt->txchannel->appl = "Apprpt"; myrpt->txchannel->data = "(Repeater Rx)"; diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 484e70c92b..b1c6756622 100755 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -527,8 +527,8 @@ static struct ast_frame *oh323_rtp_read(struct oh323_pvt *p) if (f->subclass != p->owner->nativeformats) { ast_log(LOG_DEBUG, "Oooh, format changed to %d\n", f->subclass); p->owner->nativeformats = f->subclass; - ast_set_read_format(p->owner, p->owner->readformat, 0); - ast_set_write_format(p->owner, p->owner->writeformat, 0); + ast_set_read_format(p->owner, p->owner->readformat); + ast_set_write_format(p->owner, p->owner->writeformat); } /* Do in-band DTMF detection */ diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 2927e7a425..2545236efd 100755 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -1330,8 +1330,8 @@ static int rtpready(struct ast_rtp *rtp, struct ast_frame *f, void *data) if (f->subclass != p->owner->nativeformats) { ast_log(LOG_DEBUG, "Oooh, format changed to %d\n", f->subclass); p->owner->nativeformats = f->subclass; - ast_set_read_format(p->owner, p->owner->readformat, 0); - ast_set_write_format(p->owner, p->owner->writeformat, 0); + ast_set_read_format(p->owner, p->owner->readformat); + ast_set_write_format(p->owner, p->owner->writeformat); } if (p->dtmfinband) { f = ast_dsp_process(p->owner,p->dsp,f,0);