[svn-commits] russell: trunk r225170 - in /trunk: ./ main/translate.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Oct 21 11:42:16 CDT 2009


Author: russell
Date: Wed Oct 21 11:42:13 2009
New Revision: 225170

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=225170
Log:
Merged revisions 225169 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r225169 | russell | 2009-10-21 11:39:20 -0500 (Wed, 21 Oct 2009) | 2 lines
  
  Isolate the frame returned from ast_translate().
........

Modified:
    trunk/   (props changed)
    trunk/main/translate.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/translate.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/translate.c?view=diff&rev=225170&r1=225169&r2=225170
==============================================================================
--- trunk/main/translate.c (original)
+++ trunk/main/translate.c Wed Oct 21 11:42:13 2009
@@ -295,7 +295,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;
+	struct ast_frame *out = f, *ret;
 	struct timeval delivery;
 	int has_timing_info;
 	long ts;
@@ -364,7 +364,11 @@
 	/* Invalidate prediction if we're entering a silence period */
 	if (out->frametype == AST_FRAME_CNG)
 		path->nextout = ast_tv(0, 0);
-	return out;
+
+	ret = ast_frisolate(out);
+	ast_frfree(out);
+
+	return ret;
 }
 
 /*! \brief compute the cost of a single translation step */




More information about the svn-commits mailing list