aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-27 03:02:35 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-27 03:02:35 +0000
commit0796bf7bdcc8e5bdcddeedb493ec68d69f77effd (patch)
tree7fc3ecae577767c1c0160f19cc87f0a0ba76df19 /channel.c
parent46006a9ceb05691cd1073bd9880aa5361048cfe3 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@38327 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index dc33e8a57..a80960e70 100644
--- a/channel.c
+++ b/channel.c
@@ -2328,6 +2328,10 @@ static int set_format(struct ast_channel *chan, int fmt, int *rawformat, int *fo
int native;
int res;
+ /* if already in the desired format nothing to do here */
+ if (*format == fmt)
+ return 0;
+
native = chan->nativeformats;
/* Find a translation path from the native format to one of the desired formats */
if (!direction)