- Timestamp:
- Jul 28, 2014 1:43:22 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-audiodev/coreaudio_dev.m
r4751 r4883 434 434 435 435 /* Get all the audio device IDs */ 436 dev_ids = (AudioDeviceID *)pj_pool_calloc(cf->pool, dev_ size, size);436 dev_ids = (AudioDeviceID *)pj_pool_calloc(cf->pool, dev_count, size); 437 437 if (!dev_ids) 438 438 return PJ_ENOMEM; 439 pj_bzero(dev_ids, dev_count);440 439 ostatus = AudioObjectGetPropertyData(kAudioObjectSystemObject, &addr, 441 440 0, NULL, … … 464 463 AudioDeviceID temp_id = dev_ids[idx]; 465 464 466 for (i = idx + 1; i < dev_ size; i++) {465 for (i = idx + 1; i < dev_count; i++) { 467 466 if (dev_ids[i] == dev_id) { 468 467 dev_ids[idx++] = dev_id; … … 481 480 AudioDeviceID temp_id = dev_ids[idx]; 482 481 483 for (i = idx + 1; i < dev_ size; i++) {482 for (i = idx + 1; i < dev_count; i++) { 484 483 if (dev_ids[i] == dev_id) { 485 484 dev_ids[idx] = dev_id;
Note: See TracChangeset
for help on using the changeset viewer.