From 70ddcbed42347736cccfec676ad5e15f5126bddc Mon Sep 17 00:00:00 2001 From: sruffell Date: Wed, 7 Jan 2009 19:55:39 +0000 Subject: Set that the channel is busy even when it is already built. This is already done in DAHDI and was an error when back porting. Issue: DAHDI-231 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4612 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- kernel/zttranscode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/zttranscode.c b/kernel/zttranscode.c index 1defc51..58d098c 100644 --- a/kernel/zttranscode.c +++ b/kernel/zttranscode.c @@ -199,8 +199,10 @@ get_free_channel(struct zt_transcoder *tc, const struct zt_transcoder_formats *f * make sure that it can support the formats * that we're interested in. */ if ((fmts->srcfmt|fmts->dstfmt) == - chan->built_fmts) + chan->built_fmts) { + zt_tc_set_busy(chan); return chan; + } } } } -- cgit v1.2.3