Skip to content

Commit

Permalink
Fix audiodev index (#3962)
Browse files Browse the repository at this point in the history
  • Loading branch information
trengginas committed May 20, 2024
1 parent 7394b1e commit a250942
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pjmedia/src/pjmedia/audiodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,11 +427,13 @@ PJ_DEF(pj_status_t) pjmedia_aud_dev_get_info(pjmedia_aud_dev_index id,
if (status != PJ_SUCCESS)
return status;

status = f->op->get_dev_info(f, index, info);

/* Make sure device ID is the real ID (not PJMEDIA_AUD_DEFAULT_*_DEV) */
info->id = index;
make_global_index(f->sys.drv_idx, &info->id);

return f->op->get_dev_info(f, index, info);
return status;
}

/* API: find device */
Expand Down

0 comments on commit a250942

Please sign in to comment.