[svn-commits] file: branch 1.2 r47859 - /branches/1.2/frame.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Nov 20 12:50:22 MST 2006


Author: file
Date: Mon Nov 20 13:50:21 2006
New Revision: 47859

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47859
Log:
Don't forget to byte swap if we are exiting the smoother feed early. (issue #8287 reported by arturs)

Modified:
    branches/1.2/frame.c

Modified: branches/1.2/frame.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/frame.c?view=diff&rev=47859&r1=47858&r2=47859
==============================================================================
--- branches/1.2/frame.c (original)
+++ branches/1.2/frame.c Mon Nov 20 13:50:21 2006
@@ -157,6 +157,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 {
@@ -167,6 +169,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 svn-commits mailing list