Changeset 320 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
- Timestamp:
- Mar 16, 2006 2:24:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r318 r320 618 618 if (pjsua.codec_cnt == 0) { 619 619 620 #if PJMEDIA_HAS_SPEEX_CODEC 620 621 unsigned option = PJMEDIA_SPEEX_NO_WB | PJMEDIA_SPEEX_NO_UWB; 621 622 … … 637 638 pjsua.codec_deinit[pjsua.codec_cnt] = &pjmedia_codec_speex_deinit; 638 639 pjsua.codec_cnt++; 639 640 #endif /* PJMEDIA_HAS_SPEEX_CODEC */ 641 642 #if PJMEDIA_HAS_GSM_CODEC 640 643 /* Register GSM */ 641 644 status = pjmedia_codec_gsm_init(pjsua.med_endpt); … … 649 652 pjsua.codec_deinit[pjsua.codec_cnt] = &pjmedia_codec_gsm_deinit; 650 653 pjsua.codec_cnt++; 651 654 #endif /* PJMEDIA_HAS_GSM_CODEC */ 655 656 #if PJMEDIA_HAS_G711_CODEC 652 657 /* Register PCMA and PCMU */ 653 658 status = pjmedia_codec_g711_init(pjsua.med_endpt); … … 664 669 pjsua.codec_deinit[pjsua.codec_cnt] = &pjmedia_codec_g711_deinit; 665 670 pjsua.codec_cnt++; 671 #endif /* PJMEDIA_HAS_G711_CODEC */ 666 672 667 673 } else { … … 674 680 for (i=0; i<pjsua.codec_cnt; ++i) { 675 681 682 if (0) { 683 /* Dummy */ 684 } 685 #if PJMEDIA_HAS_SPEEX_CODEC 676 686 /* Is it speex? */ 677 if (!pj_stricmp2(&pjsua.codec_arg[i], "speex")) {687 else if (!pj_stricmp2(&pjsua.codec_arg[i], "speex")) { 678 688 679 689 unsigned option = PJMEDIA_SPEEX_NO_WB | PJMEDIA_SPEEX_NO_UWB; … … 695 705 pjsua.codec_deinit[i] = &pjmedia_codec_speex_deinit; 696 706 } 707 #endif /* PJMEDIA_HAS_SPEEX_CODEC */ 708 709 #if PJMEDIA_HAS_GSM_CODEC 697 710 /* Is it gsm? */ 698 711 else if (!pj_stricmp2(&pjsua.codec_arg[i], "gsm")) { … … 708 721 709 722 } 723 #endif /* PJMEDIA_HAS_GSM_CODEC */ 724 725 #if PJMEDIA_HAS_G711_CODEC 710 726 /* Is it pcma/pcmu? */ 711 727 else if (!pj_stricmp2(&pjsua.codec_arg[i], "pcmu") || … … 723 739 724 740 } 741 #endif /* PJMEDIA_HAS_G711_CODEC */ 742 725 743 /* Don't know about this codec... */ 726 744 else { … … 1059 1077 1060 1078 /* Destroy file port */ 1061 pjmedia_port_destroy(pjsua.file_port); 1079 if (pjsua.file_port) 1080 pjmedia_port_destroy(pjsua.file_port); 1062 1081 1063 1082 /* Destroy null port. */ 1064 pjmedia_port_destroy(pjsua.null_port); 1083 if (pjsua.null_port) 1084 pjmedia_port_destroy(pjsua.null_port); 1065 1085 1066 1086
Note: See TracChangeset
for help on using the changeset viewer.