Changeset 246 for pjproject/trunk
- Timestamp:
- Feb 27, 2006 11:53:34 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/conference.c
r234 r246 31 31 #ifdef CONF_DEBUG 32 32 # include <stdio.h> 33 # define TRACE_(x) printf x33 # define TRACE_(x) {printf x; fflush(stdout); } 34 34 #else 35 35 # define TRACE_(x) … … 267 267 268 268 /* Create mutex. */ 269 status = pj_mutex_create_ simple(pool, "conf", &conf->mutex);269 status = pj_mutex_create_recursive(pool, "conf", &conf->mutex); 270 270 if (status != PJ_SUCCESS) 271 271 return status; … … 461 461 { 462 462 struct conf_port *src_port, *dst_port; 463 pj_bool_t start_sound = PJ_FALSE; 463 464 464 465 /* Check arguments */ … … 481 482 482 483 if (conf->connect_cnt == 1) 483 resume_sound(conf);484 start_sound = 1; 484 485 485 486 PJ_LOG(4,(THIS_FILE,"Port %.*s transmitting to port %.*s", … … 491 492 492 493 pj_mutex_unlock(conf->mutex); 494 495 /* Sound device must be started without mutex, otherwise the 496 * sound thread will deadlock (?) 497 */ 498 if (start_sound) 499 resume_sound(conf); 493 500 494 501 return PJ_SUCCESS; … … 681 688 PJ_UNUSED_ARG(size); 682 689 690 pj_mutex_lock(conf->mutex); 691 683 692 TRACE_(("p")); 684 685 pj_mutex_lock(conf->mutex);686 693 687 694 /* Zero all port's temporary buffers. */ … … 914 921 915 922 /* Skip if this port is muted/disabled. */ 916 if (snd_port->rx_setting != PJMEDIA_PORT_ENABLE) 923 if (snd_port->rx_setting != PJMEDIA_PORT_ENABLE) { 917 924 return PJ_SUCCESS; 925 } 918 926 919 927 /* Skip if no port is listening to the microphone */ 920 if (snd_port->listener_cnt == 0) 928 if (snd_port->listener_cnt == 0) { 921 929 return PJ_SUCCESS; 930 } 922 931 923 932
Note: See TracChangeset
for help on using the changeset viewer.