[asterisk-commits] russell: branch 1.4 r86296 - /branches/1.4/codecs/codec_zap.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 18 10:45:55 CDT 2007
Author: russell
Date: Thu Oct 18 10:45:55 2007
New Revision: 86296
URL: http://svn.digium.com/view/asterisk?view=rev&rev=86296
Log:
Execute the RELEASE operation on transcoder channels in the destroy callback.
(patch from jsloan)
Modified:
branches/1.4/codecs/codec_zap.c
Modified: branches/1.4/codecs/codec_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/codecs/codec_zap.c?view=diff&rev=86296&r1=86295&r2=86296
==============================================================================
--- branches/1.4/codecs/codec_zap.c (original)
+++ branches/1.4/codecs/codec_zap.c Thu Oct 18 10:45:55 2007
@@ -218,6 +218,11 @@
static void zap_destroy(struct ast_trans_pvt *pvt)
{
struct pvt *ztp = pvt->pvt;
+ unsigned int x;
+
+ x = ZT_TCOP_RELEASE;
+ if (ioctl(ztp->fd, ZT_TRANSCODE_OP, &x))
+ ast_log(LOG_WARNING, "Failed to release transcoder channel: %s\n", strerror(errno));
ast_atomic_fetchadd_int(&channels.total, -1);
switch (ztp->hdr->dstfmt) {
More information about the asterisk-commits
mailing list