- Timestamp:
- May 28, 2006 2:55:22 PM (19 years ago)
- Location:
- pjproject/trunk/pjmedia/src/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/conference.c
r459 r481 193 193 static pj_status_t get_frame(pjmedia_port *this_port, 194 194 pjmedia_frame *frame); 195 static pj_status_t destroy_port(pjmedia_port *this_port); 195 196 196 197 … … 455 456 conf->master_port->get_frame = &get_frame; 456 457 conf->master_port->put_frame = &put_frame; 458 conf->master_port->on_destroy = &destroy_port; 457 459 458 460 conf->master_port->user_data = conf; … … 532 534 533 535 return PJ_SUCCESS; 536 } 537 538 539 /* 540 * Destroy the master port (will destroy the conference) 541 */ 542 static pj_status_t destroy_port(pjmedia_port *this_port) 543 { 544 pjmedia_conf *conf = this_port->user_data; 545 return pjmedia_conf_destroy(conf); 534 546 } 535 547 -
pjproject/trunk/pjmedia/src/pjmedia/pasound.c
r371 r481 244 244 PaError err; 245 245 246 if (index == -1) {246 if (index <= 0) { 247 247 int count = Pa_GetDeviceCount(); 248 248 for (index=0; index<count; ++index) { … … 337 337 PaError err; 338 338 339 if (index == -1) {339 if (index <= 0) { 340 340 int count = Pa_GetDeviceCount(); 341 341 for (index=0; index<count; ++index) { … … 439 439 PaError err; 440 440 441 if (rec_id == -1) {441 if (rec_id <= 0) { 442 442 int count = Pa_GetDeviceCount(); 443 443 for (rec_id=0; rec_id<count; ++rec_id) { … … 458 458 } 459 459 460 if (play_id == -1) {460 if (play_id <= 0) { 461 461 int count = Pa_GetDeviceCount(); 462 462 for (play_id=0; play_id<count; ++play_id) {
Note: See TracChangeset
for help on using the changeset viewer.