Ticket #844: on_rx_rtp.patch
File on_rx_rtp.patch, 895 bytes (added by bennylp, 15 years ago) |
---|
-
pjmedia/src/pjmedia/transport_udp.c
637 637 /* Must not be "attached" to existing application */ 638 638 PJ_ASSERT_RETURN(!udp->attached, PJ_EINVALIDOP); 639 639 640 /* Lock the ioqueue keys to make sure that callbacks are 641 * not executed. See ticket #844 for details. 642 */ 643 pj_ioqueue_lock_key(udp->rtp_key); 644 pj_ioqueue_lock_key(udp->rtcp_key); 645 640 646 /* "Attach" the application: */ 641 647 642 648 /* Copy remote RTP address */ … … 672 678 pj_bzero(&udp->rtcp_src_addr, sizeof(udp->rtcp_src_addr)); 673 679 udp->rtp_src_cnt = 0; 674 680 681 /* Unlock keys */ 682 pj_ioqueue_unlock_key(udp->rtcp_key); 683 pj_ioqueue_unlock_key(udp->rtp_key); 684 675 685 return PJ_SUCCESS; 676 686 } 677 687