Make simpleua work without threads
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1120 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
6b5b6602a9
commit
54826a3955
|
@ -247,7 +247,13 @@ int main(int argc, char *argv[])
|
|||
* Initialize media endpoint.
|
||||
* This will implicitly initialize PJMEDIA too.
|
||||
*/
|
||||
#if PJ_HAS_THREADS
|
||||
status = pjmedia_endpt_create(&cp.factory, NULL, 1, &g_med_endpt);
|
||||
#else
|
||||
status = pjmedia_endpt_create(&cp.factory,
|
||||
pjsip_endpt_get_ioqueue(g_endpt),
|
||||
0, &g_med_endpt);
|
||||
#endif
|
||||
PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue