提交 c3dd8811 authored 作者: Brian West's avatar Brian West

small cleanup

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1028 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 f8f7841f
...@@ -29,11 +29,6 @@ ...@@ -29,11 +29,6 @@
* switch_rtp.c -- RTP * switch_rtp.c -- RTP
* *
*/ */
#ifdef RTPW_USE_WINSOCK2
# define DICT_FILE "words.txt"
#else
# define DICT_FILE "/usr/share/dict/words"
#endif
#define USEC_RATE (5e5) #define USEC_RATE (5e5)
#define MAX_WORD_LEN 128 #define MAX_WORD_LEN 128
#define ADDR_IS_MULTICAST(a) IN_MULTICAST(htonl(a)) #define ADDR_IS_MULTICAST(a) IN_MULTICAST(htonl(a))
...@@ -49,7 +44,6 @@ ...@@ -49,7 +44,6 @@
#include <datatypes.h> #include <datatypes.h>
#include <srtp.h> #include <srtp.h>
#define rtp_header_len 12 #define rtp_header_len 12
typedef srtp_hdr_t rtp_hdr_t; typedef srtp_hdr_t rtp_hdr_t;
...@@ -61,7 +55,6 @@ typedef struct { ...@@ -61,7 +55,6 @@ typedef struct {
char body[RTP_MAX_BUF_LEN]; char body[RTP_MAX_BUF_LEN];
} rtp_msg_t; } rtp_msg_t;
struct switch_rtp { struct switch_rtp {
switch_socket_t *sock; switch_socket_t *sock;
...@@ -256,7 +249,6 @@ SWITCH_DECLARE(int) switch_rtp_read(switch_rtp *rtp_session, void *data, uint32_ ...@@ -256,7 +249,6 @@ SWITCH_DECLARE(int) switch_rtp_read(switch_rtp *rtp_session, void *data, uint32_
} }
SWITCH_DECLARE(int) switch_rtp_zerocopy_read(switch_rtp *rtp_session, void **data, int *payload_type) SWITCH_DECLARE(int) switch_rtp_zerocopy_read(switch_rtp *rtp_session, void **data, int *payload_type)
{ {
switch_size_t bytes; switch_size_t bytes;
...@@ -346,4 +338,3 @@ SWITCH_DECLARE(void *)switch_rtp_get_private(switch_rtp *rtp_session) ...@@ -346,4 +338,3 @@ SWITCH_DECLARE(void *)switch_rtp_get_private(switch_rtp *rtp_session)
{ {
return rtp_session->private_data; return rtp_session->private_data;
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论