[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);
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue