Changeset 2748 for pjproject/trunk
- Timestamp:
- Jun 4, 2009 7:36:52 PM (15 years ago)
- Location:
- pjproject/trunk/pjmedia/src/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/conference.c
r2747 r2748 459 459 460 460 461 status = create_conf_port( conf, pool, &name, NULL, &conf_port);461 status = create_conf_port(pool, conf, NULL, &name, &conf_port); 462 462 if (status != PJ_SUCCESS) 463 463 return status; -
pjproject/trunk/pjmedia/src/pjmedia/sound_port.c
r2747 r2748 565 565 pjmedia_port_info *pinfo; 566 566 pjmedia_aud_param *param; 567 pjmedia_sync_param sync_param;568 567 pj_status_t status; 569 568 … … 610 609 } 611 610 612 /* Create sync port */ 613 pj_bzero(&sync_param, sizeof(sync_param)); 614 sync_param.options = PJMEDIA_SYNC_DONT_DESTROY_DN; 615 status = pjmedia_sync_port_create(snd_port->pool, 616 (snd_port->echo_port? 617 snd_port->echo_port:snd_port->port), 618 &sync_param, &snd_port->sync_port); 619 if (status != PJ_SUCCESS) 620 return status; 621 622 /* Update down port of sound port */ 623 snd_port->dn_port = snd_port->sync_port; 611 /* Create sync port. Only do this if the format is PCM! */ 612 if (param->ext_fmt.id == PJMEDIA_FORMAT_PCM) { 613 pjmedia_sync_param sync_param; 614 615 pj_bzero(&sync_param, sizeof(sync_param)); 616 sync_param.options = PJMEDIA_SYNC_DONT_DESTROY_DN; 617 status = pjmedia_sync_port_create(snd_port->pool, 618 (snd_port->echo_port? 619 snd_port->echo_port:snd_port->port), 620 &sync_param, &snd_port->sync_port); 621 if (status != PJ_SUCCESS) 622 return status; 623 624 /* Update down port of sound port */ 625 snd_port->dn_port = snd_port->sync_port; 626 } 624 627 625 628 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.