- Timestamp:
- Feb 26, 2006 9:21:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/conference.c
r229 r234 355 355 356 356 357 /*358 * Suspend sound device359 */360 static void suspend_sound( pjmedia_conf *conf )361 {362 if (conf->snd_rec)363 pj_snd_stream_stop(conf->snd_rec);364 if (conf->snd_player)365 pj_snd_stream_stop(conf->snd_player);366 }367 368 369 357 /** 370 358 * Destroy conference bridge. … … 374 362 PJ_ASSERT_RETURN(conf != NULL, PJ_EINVAL); 375 363 376 suspend_sound(conf);364 //suspend_sound(conf); 377 365 destroy_sound(conf); 378 366 pj_mutex_destroy(conf->mutex); … … 541 529 dst_port->name.ptr)); 542 530 543 if (conf->connect_cnt == 0) { 544 suspend_sound(conf); 545 destroy_sound(conf); 546 } 531 547 532 } 548 533 549 534 pj_mutex_unlock(conf->mutex); 535 536 if (conf->connect_cnt == 0) { 537 destroy_sound(conf); 538 } 550 539 551 540 return PJ_SUCCESS; … … 606 595 --conf->port_cnt; 607 596 597 pj_mutex_unlock(conf->mutex); 598 599 608 600 /* Stop sound if there's no connection. */ 609 601 if (conf->connect_cnt == 0) { 610 602 destroy_sound(conf); 611 603 } 612 613 pj_mutex_unlock(conf->mutex);614 604 615 605 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.