[svn-commits] russell: branch russell/frame_caching r38570 - /team/russell/frame_caching/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun Jul 30 22:15:16 MST 2006


Author: russell
Date: Mon Jul 31 00:15:16 2006
New Revision: 38570

URL: http://svn.digium.com/view/asterisk?rev=38570&view=rev
Log:
when duplicating a frame to put in the jitterbuffer, always use ast_frdup().
ast_frisolate() results in a malloc'd header, data, and source, while
ast_frdup() results in just a malloc'd header, which is what we want.

Modified:
    team/russell/frame_caching/abstract_jb.c

Modified: team/russell/frame_caching/abstract_jb.c
URL: http://svn.digium.com/view/asterisk/team/russell/frame_caching/abstract_jb.c?rev=38570&r1=38569&r2=38570&view=diff
==============================================================================
--- team/russell/frame_caching/abstract_jb.c (original)
+++ team/russell/frame_caching/abstract_jb.c Mon Jul 31 00:15:16 2006
@@ -324,10 +324,7 @@
 		return -1;
 	}
 
-	if (f->mallocd & AST_MALLOCD_HDR)
-		frr = ast_frdup(f);
-	else
-		frr = ast_frisolate(f);
+	frr = ast_frdup(f);
 
 	if (!frr) {
 		ast_log(LOG_ERROR, "Failed to isolate frame for the jitterbuffer on channel '%s'\n", chan->name);



More information about the svn-commits mailing list