Mercurial > pidgin.yaz
comparison src/mediastreamer/audiostream.c @ 12029:1c771536a032
[gaim-migrate @ 14322]
This _compiles_ for me now. Theres still a bunch of "dereferencing type-punned pointer will break strict-aliasing rules" warning and some redefinition warnings from the various config.h's. The deferencing warnings look like a BE<->LE hack but I left them untouched for the time being.
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Wed, 09 Nov 2005 09:57:33 +0000 |
parents | e67993da8a22 |
children |
comparison
equal
deleted
inserted
replaced
12028:b0ad08e1d492 | 12029:1c771536a032 |
---|---|
16 You should have received a copy of the GNU Lesser General Public | 16 You should have received a copy of the GNU Lesser General Public |
17 License along with this library; if not, write to the Free Software | 17 License along with this library; if not, write to the Free Software |
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 */ | 19 */ |
20 | 20 |
21 | |
22 #include "mediastream.h" | 21 #include "mediastream.h" |
23 #ifdef INET6 | 22 #ifdef INET6 |
24 #include <sys/types.h> | 23 #include <sys/types.h> |
25 #include <sys/socket.h> | 24 #include <sys/socket.h> |
26 #include <netdb.h> | 25 #include <netdb.h> |
86 | 85 |
87 const char *get_local_addr_for(const char *remote) | 86 const char *get_local_addr_for(const char *remote) |
88 { | 87 { |
89 const char *ret; | 88 const char *ret; |
90 #ifdef INET6 | 89 #ifdef INET6 |
91 char num[8]; | |
92 struct addrinfo hints, *res0; | 90 struct addrinfo hints, *res0; |
93 int err; | 91 int err; |
94 memset(&hints, 0, sizeof(hints)); | 92 memset(&hints, 0, sizeof(hints)); |
95 hints.ai_family = PF_UNSPEC; | 93 hints.ai_family = PF_UNSPEC; |
96 hints.ai_socktype = SOCK_DGRAM; | 94 hints.ai_socktype = SOCK_DGRAM; |
127 | 125 |
128 void create_rtp_sessions(RtpProfile *profile, int locport,char *remip,int remport, | 126 void create_rtp_sessions(RtpProfile *profile, int locport,char *remip,int remport, |
129 int payload,int jitt_comp, | 127 int payload,int jitt_comp, |
130 RtpSession **recv, RtpSession **send){ | 128 RtpSession **recv, RtpSession **send){ |
131 RtpSession *rtps,*rtpr; | 129 RtpSession *rtps,*rtpr; |
132 PayloadType *pt; | |
133 /* creates two rtp filters to recv send streams (remote part)*/ | 130 /* creates two rtp filters to recv send streams (remote part)*/ |
134 | 131 |
135 rtps=rtp_session_new(RTP_SESSION_SENDONLY); | 132 rtps=rtp_session_new(RTP_SESSION_SENDONLY); |
136 rtp_session_max_buf_size_set(rtps,MAX_RTP_SIZE); | 133 rtp_session_max_buf_size_set(rtps,MAX_RTP_SIZE); |
137 rtp_session_set_profile(rtps,profile); | 134 rtp_session_set_profile(rtps,profile); |
336 | 333 |
337 gint audio_stream_send_dtmf(AudioStream *stream, gchar dtmf) | 334 gint audio_stream_send_dtmf(AudioStream *stream, gchar dtmf) |
338 { | 335 { |
339 ms_rtp_send_dtmf(MS_RTP_SEND(stream->rtpsend), dtmf); | 336 ms_rtp_send_dtmf(MS_RTP_SEND(stream->rtpsend), dtmf); |
340 ms_oss_write_play_dtmf(MS_OSS_WRITE(stream->soundwrite),dtmf); | 337 ms_oss_write_play_dtmf(MS_OSS_WRITE(stream->soundwrite),dtmf); |
341 } | 338 |
339 /* not sure what this should be returning, nothing in mediastreamer calls | |
340 * it directly, assuming 0 is okay here. -- Gary | |
341 */ | |
342 return 0; | |
343 } |