Skip to content

Commit a250942

Browse files
authored
Fix audiodev index (#3962)
1 parent 7394b1e commit a250942

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pjmedia/src/pjmedia/audiodev.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,13 @@ PJ_DEF(pj_status_t) pjmedia_aud_dev_get_info(pjmedia_aud_dev_index id,
427427
if (status != PJ_SUCCESS)
428428
return status;
429429

430+
status = f->op->get_dev_info(f, index, info);
431+
430432
/* Make sure device ID is the real ID (not PJMEDIA_AUD_DEFAULT_*_DEV) */
431433
info->id = index;
432434
make_global_index(f->sys.drv_idx, &info->id);
433435

434-
return f->op->get_dev_info(f, index, info);
436+
return status;
435437
}
436438

437439
/* API: find device */

0 commit comments

Comments
 (0)