- Timestamp:
- Feb 22, 2009 12:00:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/aps-direct/pjmedia/src/pjmedia/sound_port.c
r2468 r2469 414 414 { 415 415 pjmedia_snd_port *snd_port; 416 pj_status_t status; 416 417 417 418 PJ_ASSERT_RETURN(pool && prm && p_port, PJ_EINVAL); … … 430 431 pj_memcpy(&snd_port->aud_param, prm, sizeof(*prm)); 431 432 432 *p_port = snd_port;433 434 435 433 /* Start sound device immediately. 436 434 * If there's no port connected, the sound callback will return 437 435 * empty signal. 438 436 */ 439 return start_sound_device( pool, snd_port ); 440 437 status = start_sound_device( pool, snd_port ); 438 if (status != PJ_SUCCESS) { 439 pjmedia_snd_port_destroy(snd_port); 440 return status; 441 } 442 443 *p_port = snd_port; 444 return PJ_SUCCESS; 441 445 } 442 446
Note: See TracChangeset
for help on using the changeset viewer.