Ticket #102: use PJSUA_MAX_PLAYERS and PJSUA_MAX_RECORDERS instead of hardcoded value in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@949 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
afc47be5d9
commit
cba59d9d05
|
@ -3373,6 +3373,22 @@ PJ_DECL(pj_status_t) pjsua_im_typing(pjsua_acc_id acc_id,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The maximum file player.
|
||||||
|
*/
|
||||||
|
#ifndef PJSUA_MAX_PLAYERS
|
||||||
|
# define PJSUA_MAX_PLAYERS 32
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The maximum file player.
|
||||||
|
*/
|
||||||
|
#ifndef PJSUA_MAX_RECORDERS
|
||||||
|
# define PJSUA_MAX_RECORDERS 32
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This structure describes media configuration, which will be specified
|
* This structure describes media configuration, which will be specified
|
||||||
* when calling #pjsua_init(). Application MUST initialize this structure
|
* when calling #pjsua_init(). Application MUST initialize this structure
|
||||||
|
|
|
@ -216,11 +216,11 @@ struct pjsua_data
|
||||||
|
|
||||||
/* File players: */
|
/* File players: */
|
||||||
unsigned player_cnt;/**< Number of file players. */
|
unsigned player_cnt;/**< Number of file players. */
|
||||||
pjsua_file_data player[32];/**< Array of players. */
|
pjsua_file_data player[PJSUA_MAX_PLAYERS];/**< Array of players.*/
|
||||||
|
|
||||||
/* File recorders: */
|
/* File recorders: */
|
||||||
unsigned rec_cnt; /**< Number of file recorders. */
|
unsigned rec_cnt; /**< Number of file recorders. */
|
||||||
pjsua_file_data recorder[32];/**< Array of file recorders. */
|
pjsua_file_data recorder[PJSUA_MAX_RECORDERS];/**< Array of recs.*/
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue