- Timestamp:
- Jun 28, 2006 11:48:51 AM (18 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/build/Makefile
r525 r558 66 66 export PJMEDIA_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 67 67 clock_thread.o codec.o conference.o endpoint.o errno.o \ 68 wav_player.o wav_writer.o g711.o jbuf.o \69 master_port.onull_port.o plc_common.o plc_g711.o \68 g711.o jbuf.o master_port.o mem_capture.o mem_player.o \ 69 null_port.o plc_common.o plc_g711.o \ 70 70 port.o resample.o \ 71 71 resample_port.o rtcp.o rtp.o sdp.o sdp_cmp.o sdp_neg.o \ 72 72 session.o silencedet.o sound_port.o stream.o \ 73 transport_udp.o wav e.o \73 transport_udp.o wav_player.o wav_writer.o wave.o \ 74 74 $(SOUND_OBJS) $(NULLSOUND_OBJS) 75 75 -
pjproject/trunk/pjmedia/include/pjmedia.h
r518 r558 34 34 #include <pjmedia/jbuf.h> 35 35 #include <pjmedia/master_port.h> 36 #include <pjmedia/mem_port.h> 36 37 #include <pjmedia/null_port.h> 37 38 #include <pjmedia/plc.h> … … 42 43 #include <pjmedia/sdp.h> 43 44 #include <pjmedia/sdp_neg.h> 45 #include <pjmedia/session.h> 44 46 #include <pjmedia/silencedet.h> 45 #include <pjmedia/session.h> 47 #include <pjmedia/sound.h> 48 #include <pjmedia/sound_port.h> 49 #include <pjmedia/splitcomb.h> 46 50 #include <pjmedia/transport.h> 47 51 #include <pjmedia/transport_udp.h> 48 #include <pjmedia/sound.h>49 #include <pjmedia/sound_port.h>50 52 #include <pjmedia/wav_port.h> 51 53 #include <pjmedia/wave.h> -
pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c
r539 r558 52 52 pj_sockaddr_in rem_rtp_addr; /**< Remote RTP address */ 53 53 pj_sockaddr_in rem_rtcp_addr; /**< Remote RTCP address */ 54 void (*rtp_cb)( pjmedia_stream*,/**< To report incoming RTP. */54 void (*rtp_cb)( void*, /**< To report incoming RTP. */ 55 55 const void*, 56 56 pj_ssize_t); 57 void (*rtcp_cb)( pjmedia_stream*,/**< To report incoming RTCP. */57 void (*rtcp_cb)( void*, /**< To report incoming RTCP. */ 58 58 const void*, 59 59 pj_ssize_t); … … 322 322 PJ_ASSERT_RETURN(tp, PJ_EINVAL); 323 323 324 /* Must not close while streamis using this */324 /* Must not close while application is using this */ 325 325 PJ_ASSERT_RETURN(!udp->attached, PJ_EINVALIDOP); 326 326 … … 449 449 450 450 451 /* Called by streamto initialize the transport */451 /* Called by application to initialize the transport */ 452 452 static pj_status_t transport_attach( pjmedia_transport *tp, 453 453 void *user_data, … … 466 466 PJ_ASSERT_RETURN(tp && rem_addr && addr_len, PJ_EINVAL); 467 467 468 /* Must not be "attached" to existing stream*/468 /* Must not be "attached" to existing application */ 469 469 PJ_ASSERT_RETURN(!udp->attached, PJ_EINVALIDOP); 470 470 471 /* "Attach" the stream: */471 /* "Attach" the application: */ 472 472 473 473 /* Copy remote RTP address */ … … 491 491 492 492 493 /* Called by streamwhen it no longer needs the transport */493 /* Called by application when it no longer needs the transport */ 494 494 static void transport_detach( pjmedia_transport *tp, 495 495 void *user_data) … … 505 505 pj_assert(user_data == udp->user_data); 506 506 507 /* First, mark streamas unattached */507 /* First, mark transport as unattached */ 508 508 udp->attached = PJ_FALSE; 509 509 510 /* Clear up streaminfos from transport */510 /* Clear up application infos from transport */ 511 511 udp->rtp_cb = NULL; 512 512 udp->rtcp_cb = NULL; … … 515 515 516 516 517 /* Called by streamto send RTP packet */517 /* Called by application to send RTP packet */ 518 518 static pj_status_t transport_send_rtp( pjmedia_transport *tp, 519 519 const void *pkt, … … 557 557 } 558 558 559 /* Called by streamto send RTCP packet */559 /* Called by application to send RTCP packet */ 560 560 static pj_status_t transport_send_rtcp(pjmedia_transport *tp, 561 561 const void *pkt,
Note: See TracChangeset
for help on using the changeset viewer.