we should swap on read too I suppose
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8350 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4362c43e32
commit
e0e1d3ad0e
|
@ -301,6 +301,11 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
*frame = &tech_pvt->read_frame;
|
*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;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue