mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-09 04:49:05 +00:00
correct types on invalid_handler
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1029 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
c3dd8811dc
commit
271d4b48c0
3 files changed
+5
-5
No files matched your search
+2
-2
@@ -245,7 +245,7 @@ SWITCH_DECLARE(int) switch_rtp_read(switch_rtp *rtp_session, void *data, uint32_
|
||||
}
|
||||
memcpy(data, rtp_session->recv_msg.body, bytes);
|
||||
*payload_type = rtp_session->recv_msg.header.pt;
|
||||
return bytes - rtp_header_len;
|
||||
return (int)(bytes - rtp_header_len);
|
||||
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@ SWITCH_DECLARE(int) switch_rtp_zerocopy_read(switch_rtp *rtp_session, void **dat
|
||||
*payload_type = rtp_session->recv_msg.header.pt;
|
||||
*data = rtp_session->recv_msg.body;
|
||||
|
||||
return bytes - rtp_header_len;
|
||||
return (int)(bytes - rtp_header_len);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(int) switch_rtp_write(switch_rtp *rtp_session, void *data, int datalen, uint32_t ts)
|
||||
|
||||
Reference in new issue
Block a user