[Freeswitch-svn] [commit] r8350 - freeswitch/trunk/src/mod/endpoints/mod_reference
Freeswitch SVN
anthm at freeswitch.org
Sat May 10 02:11:52 EDT 2008
Author: anthm
Date: Sat May 10 02:11:52 2008
New Revision: 8350
Modified:
freeswitch/trunk/src/mod/endpoints/mod_reference/mod_reference.c
Log:
we should swap on read too I suppose
Modified: freeswitch/trunk/src/mod/endpoints/mod_reference/mod_reference.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_reference/mod_reference.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_reference/mod_reference.c Sat May 10 02:11:52 2008
@@ -301,6 +301,11 @@
continue;
}
*frame = &tech_pvt->read_frame;
+#ifdef BIGENDIAN
+ if (switch_test_flag(tech_pvt, TFLAG_LINEAR)) {
+ switch_swap_linear((*frame)->data, (int) (*frame)->datalen / 2);
+ }
+#endif
return SWITCH_STATUS_SUCCESS;
}
More information about the Freeswitch-svn
mailing list