mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-11 18:07:14 +00:00
[core] native tap fix (pass the copy of the frame to switch_core_session_write_frame() so it does not get encoded)
This commit is contained in:
parent
7b8a36c2a9
commit
3509ae537e
@ -2084,7 +2084,7 @@ static switch_bool_t eavesdrop_callback(switch_media_bug_t *bug, void *user_data
|
|||||||
|
|
||||||
memcpy(frame.data, nframe->data, nframe->datalen);
|
memcpy(frame.data, nframe->data, nframe->datalen);
|
||||||
|
|
||||||
if (switch_core_session_write_frame(ep->eavesdropper, nframe, SWITCH_IO_FLAG_NONE, 0) != SWITCH_STATUS_SUCCESS) {
|
if (switch_core_session_write_frame(ep->eavesdropper, &frame, SWITCH_IO_FLAG_NONE, 0) != SWITCH_STATUS_SUCCESS) {
|
||||||
return SWITCH_FALSE;
|
return SWITCH_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user