[asterisk-commits] file: branch 1.4 r47860 - in /branches/1.4: ./ main/frame.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Nov 20 12:51:37 MST 2006


Author: file
Date: Mon Nov 20 13:51:36 2006
New Revision: 47860

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47860
Log:
Merged revisions 47859 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r47859 | file | 2006-11-20 14:50:21 -0500 (Mon, 20 Nov 2006) | 2 lines

Don't forget to byte swap if we are exiting the smoother feed early. (issue #8287 reported by arturs)

........

Modified:
    branches/1.4/   (props changed)
    branches/1.4/main/frame.c

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

Modified: branches/1.4/main/frame.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/frame.c?view=diff&rev=47860&r1=47859&r2=47860
==============================================================================
--- branches/1.4/main/frame.c (original)
+++ branches/1.4/main/frame.c Mon Nov 20 13:51:36 2006
@@ -188,6 +188,8 @@
 			/* Optimize by sending the frame we just got
 			   on the next read, thus eliminating the douple
 			   copy */
+			if (swap)
+				ast_swapcopy_samples(f->data, f->data, f->samples);
 			s->opt = f;
 			return 0;
 		} else {
@@ -198,6 +200,8 @@
 				   we were unable to optimize because there was still
 				   some cruft left over.  Lets just drop the cruft so
 				   we can move to a fully optimized path */
+				if (swap)
+					ast_swapcopy_samples(f->data, f->data, f->samples);
 				s->len = 0;
 				s->opt = f;
 				return 0;



More information about the asterisk-commits mailing list