[asterisk-commits] russell: branch 1.4 r225171 - /branches/1.4/main/translate.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 21 11:44:53 CDT 2009


Author: russell
Date: Wed Oct 21 11:44:49 2009
New Revision: 225171

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=225171
Log:
Revert 225169, as this doesn't account for the possibility of a list of frames.

Modified:
    branches/1.4/main/translate.c

Modified: branches/1.4/main/translate.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/translate.c?view=diff&rev=225171&r1=225170&r2=225171
==============================================================================
--- branches/1.4/main/translate.c (original)
+++ branches/1.4/main/translate.c Wed Oct 21 11:44:49 2009
@@ -301,7 +301,7 @@
 struct ast_frame *ast_translate(struct ast_trans_pvt *path, struct ast_frame *f, int consume)
 {
 	struct ast_trans_pvt *p = path;
-	struct ast_frame *out = f, *ret;
+	struct ast_frame *out = f;
 	struct timeval delivery;
 	int has_timing_info;
 	long ts;
@@ -370,11 +370,7 @@
 	/* Invalidate prediction if we're entering a silence period */
 	if (out->frametype == AST_FRAME_CNG)
 		path->nextout = ast_tv(0, 0);
-
-	ret = ast_frisolate(out);
-	ast_frfree(out);
-
-	return ret;
+	return out;
 }
 
 /*! \brief compute the cost of a single translation step */




More information about the asterisk-commits mailing list