mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-25 20:19:36 +00:00
windows build fixes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5238 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c31ef0be61
commit
1d36473f28
@ -57,7 +57,7 @@ static void bcast_function(switch_core_session_t *session, char *data)
|
|||||||
{
|
{
|
||||||
switch_channel_t *channel;
|
switch_channel_t *channel;
|
||||||
switch_socket_t *socket;
|
switch_socket_t *socket;
|
||||||
switch_sockaddr_t *audio_addr, *control_packet_addr;
|
switch_sockaddr_t *audio_addr = NULL, *control_packet_addr;
|
||||||
switch_frame_t *read_frame;
|
switch_frame_t *read_frame;
|
||||||
switch_status_t status;
|
switch_status_t status;
|
||||||
switch_size_t bytes;
|
switch_size_t bytes;
|
||||||
@ -65,7 +65,7 @@ static void bcast_function(switch_core_session_t *session, char *data)
|
|||||||
switch_codec_t *read_codec;
|
switch_codec_t *read_codec;
|
||||||
uint32_t flags = 0;
|
uint32_t flags = 0;
|
||||||
const char *err;
|
const char *err;
|
||||||
switch_rtp_t *rtp_session;
|
switch_rtp_t *rtp_session = NULL;
|
||||||
switch_port_t rtp_port;
|
switch_port_t rtp_port;
|
||||||
char guess_ip[25];
|
char guess_ip[25];
|
||||||
ls_how_t ready = SEND_TYPE_UNKNOWN;
|
ls_how_t ready = SEND_TYPE_UNKNOWN;
|
||||||
@ -215,7 +215,7 @@ static void bcast_function(switch_core_session_t *session, char *data)
|
|||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
|
||||||
if (ready == SEND_TYPE_RTP && switch_rtp_ready(rtp_session)) {
|
if (rtp_session && ready == SEND_TYPE_RTP && switch_rtp_ready(rtp_session)) {
|
||||||
switch_rtp_destroy(&rtp_session);
|
switch_rtp_destroy(&rtp_session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user