Changeset 6076
- Timestamp:
- Sep 24, 2019 2:46:12 PM (5 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/conference.h
r5792 r6076 43 43 44 44 PJ_BEGIN_DECL 45 46 /* Since 1.3 pjmedia_conf_add_passive_port() has been deprecated 47 * and replaced by splitcomb. 48 * See also https://trac.pjsip.org/repos/ticket/2234. 49 */ 50 #ifndef DEPRECATED_FOR_TICKET_2234 51 # define DEPRECATED_FOR_TICKET_2234 1 52 #endif 45 53 46 54 /** … … 238 246 239 247 248 #if !DEPRECATED_FOR_TICKET_2234 240 249 /** 241 250 * <i><b>Warning:</b> This API has been deprecated since 1.3 and will be … … 280 289 pjmedia_port **p_port ); 281 290 291 #endif 282 292 283 293 /** -
pjproject/trunk/pjmedia/src/pjmedia/conference.c
r5792 r6076 252 252 static pj_status_t get_frame(pjmedia_port *this_port, 253 253 pjmedia_frame *frame); 254 static pj_status_t destroy_port(pjmedia_port *this_port); 255 256 #if !DEPRECATED_FOR_TICKET_2234 254 257 static pj_status_t get_frame_pasv(pjmedia_port *this_port, 255 258 pjmedia_frame *frame); 256 static pj_status_t destroy_port(pjmedia_port *this_port);257 259 static pj_status_t destroy_port_pasv(pjmedia_port *this_port); 260 #endif 258 261 259 262 … … 668 671 669 672 ++ci; 673 674 if (cport->rx_resample) { 675 pjmedia_resample_destroy(cport->rx_resample); 676 cport->rx_resample = NULL; 677 } 678 if (cport->tx_resample) { 679 pjmedia_resample_destroy(cport->tx_resample); 680 cport->tx_resample = NULL; 681 } 670 682 if (cport->delay_buf) { 671 683 pjmedia_delay_buf_destroy(cport->delay_buf); … … 691 703 } 692 704 705 #if !DEPRECATED_FOR_TICKET_2234 693 706 static pj_status_t destroy_port_pasv(pjmedia_port *this_port) { 694 707 pjmedia_conf *conf = (pjmedia_conf*) this_port->port_data.pdata; … … 702 715 return status; 703 716 } 717 #endif 704 718 705 719 /* … … 815 829 816 830 831 #if !DEPRECATED_FOR_TICKET_2234 817 832 /* 818 833 * Add passive port. … … 916 931 return PJ_SUCCESS; 917 932 } 933 #endif 918 934 919 935 … … 1174 1190 } 1175 1191 1192 /* Destroy resample if this conf port has it. */ 1193 if (conf_port->rx_resample) { 1194 pjmedia_resample_destroy(conf_port->rx_resample); 1195 conf_port->rx_resample = NULL; 1196 } 1197 if (conf_port->tx_resample) { 1198 pjmedia_resample_destroy(conf_port->tx_resample); 1199 conf_port->tx_resample = NULL; 1200 } 1201 1176 1202 /* Destroy pjmedia port if this conf port is passive port, 1177 1203 * i.e: has delay buf. 1178 1204 */ 1179 1205 if (conf_port->delay_buf) { 1206 pjmedia_delay_buf_destroy(conf_port->delay_buf); 1207 conf_port->delay_buf = NULL; 1208 1180 1209 pjmedia_port_destroy(conf_port->port); 1181 1210 conf_port->port = NULL; … … 2174 2203 2175 2204 2205 #if !DEPRECATED_FOR_TICKET_2234 2176 2206 /* 2177 2207 * get_frame() for passive port … … 2185 2215 return -1; 2186 2216 } 2217 #endif 2187 2218 2188 2219
Note: See TracChangeset
for help on using the changeset viewer.