mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 17:41:53 +00:00
build tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10383 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
6d8d2abe48
commit
d5dd24374f
@ -252,7 +252,7 @@ SWITCH_DECLARE(switch_socket_t *) switch_rtp_get_rtp_socket(switch_rtp_t *rtp_se
|
|||||||
\param rtp_session the RTP session to set the samples per interval on
|
\param rtp_session the RTP session to set the samples per interval on
|
||||||
\param samples_per_interval the new default samples per interval
|
\param samples_per_interval the new default samples per interval
|
||||||
*/
|
*/
|
||||||
SWITCH_DECLARE(void) switch_rtp_set_default_samples_per_interval(switch_rtp_t *rtp_session, uint16_t samples_per_interval);
|
SWITCH_DECLARE(void) switch_rtp_set_default_samples_per_interval(switch_rtp_t *rtp_session, uint32_t samples_per_interval);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Get the default samples per interval for a given RTP session
|
\brief Get the default samples per interval for a given RTP session
|
||||||
|
@ -1565,6 +1565,7 @@ switch_status_t sofia_glue_tech_set_codec(private_object_t *tech_pvt, int force)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (switch_rtp_ready(tech_pvt->rtp_session)) {
|
if (switch_rtp_ready(tech_pvt->rtp_session)) {
|
||||||
|
switch_assert(tech_pvt->read_codec.implementation);
|
||||||
switch_rtp_set_default_samples_per_interval(tech_pvt->rtp_session, tech_pvt->read_codec.implementation->samples_per_packet);
|
switch_rtp_set_default_samples_per_interval(tech_pvt->rtp_session, tech_pvt->read_codec.implementation->samples_per_packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1112,7 +1112,7 @@ SWITCH_DECLARE(switch_socket_t *) switch_rtp_get_rtp_socket(switch_rtp_t *rtp_se
|
|||||||
return rtp_session->sock_input;
|
return rtp_session->sock_input;
|
||||||
}
|
}
|
||||||
|
|
||||||
SWITCH_DECLARE(void) switch_rtp_set_default_samples_per_interval(switch_rtp_t *rtp_session, uint16_t samples_per_interval)
|
SWITCH_DECLARE(void) switch_rtp_set_default_samples_per_interval(switch_rtp_t *rtp_session, uint32_t samples_per_interval)
|
||||||
{
|
{
|
||||||
rtp_session->samples_per_interval = samples_per_interval;
|
rtp_session->samples_per_interval = samples_per_interval;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user