Fixed crashed bug when pjsua failed to initialize. Also fixed PortAudio error msg in pjmedia_strerror()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@370 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
080a2c4ce9
commit
94e0103dc2
|
@ -17,6 +17,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
#include <pjmedia/errno.h>
|
#include <pjmedia/errno.h>
|
||||||
|
#include <pjmedia/types.h>
|
||||||
#include <pj/string.h>
|
#include <pj/string.h>
|
||||||
#include <portaudio.h>
|
#include <portaudio.h>
|
||||||
|
|
||||||
|
|
|
@ -774,7 +774,6 @@ static pj_status_t init_media(void)
|
||||||
options,
|
options,
|
||||||
&pjsua.mconf);
|
&pjsua.mconf);
|
||||||
if (status != PJ_SUCCESS) {
|
if (status != PJ_SUCCESS) {
|
||||||
pj_caching_pool_destroy(&pjsua.cp);
|
|
||||||
pjsua_perror(THIS_FILE,
|
pjsua_perror(THIS_FILE,
|
||||||
"Media stack initialization has returned error",
|
"Media stack initialization has returned error",
|
||||||
status);
|
status);
|
||||||
|
|
Loading…
Reference in New Issue