mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 07:34:19 +00:00
now with rollover
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4455 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
ec3fcde87d
commit
8f0580cd73
5 files changed
+50
-13
No files matched your search
@@ -147,7 +147,7 @@ struct private_object {
|
||||
unsigned int cand_id;
|
||||
unsigned int desc_id;
|
||||
unsigned int dc;
|
||||
switch_size_t timestamp_send;
|
||||
uint32_t timestamp_send;
|
||||
int32_t timestamp_recv;
|
||||
uint32_t last_read;
|
||||
char *codec_name;
|
||||
@@ -1357,7 +1357,7 @@ static switch_status_t channel_write_frame(switch_core_session_t *session, switc
|
||||
|
||||
samples = frames * tech_pvt->read_codec.implementation->samples_per_frame;
|
||||
tech_pvt->timestamp_send += samples;
|
||||
if (switch_rtp_write_frame(tech_pvt->rtp_session, frame, (uint32_t)tech_pvt->timestamp_send) < 0) {
|
||||
if (switch_rtp_write_frame(tech_pvt->rtp_session, frame, tech_pvt->timestamp_send) < 0) {
|
||||
terminate_session(&session, __LINE__, SWITCH_CAUSE_NORMAL_CLEARING);
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user