Ignore:
Timestamp:
Feb 10, 2006 3:57:32 PM (19 years ago)
Author:
bennylp
Message:

Integrated pjmedia-codec library to pjsua

Location:
pjproject/trunk/pjsip/src/pjsua
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua/main.c

    r169 r177  
    145145 
    146146    pjsip_endpt_dump(pjsua.endpt, 1); 
     147    pjmedia_endpt_dump(pjsua.med_endpt); 
    147148    pjsip_ua_dump(); 
     149 
    148150 
    149151    /* Dump all invite sessions: */ 
  • pjproject/trunk/pjsip/src/pjsua/pjsua.h

    r169 r177  
    2525/* Include all PJMEDIA headers. */ 
    2626#include <pjmedia.h> 
     27 
     28/* Include all PJMEDIA-CODEC headers. */ 
     29#include <pjmedia-codec.h> 
    2730 
    2831/* Include all PJSIP-UA headers */ 
  • pjproject/trunk/pjsip/src/pjsua/pjsua_core.c

    r175 r177  
    467467    } 
    468468 
     469    /* Init pjmedia-codecs: */ 
     470 
     471    status = pjmedia_codec_init(pjsua.med_endpt); 
     472    if (status != PJ_SUCCESS) { 
     473        pj_caching_pool_destroy(&pjsua.cp); 
     474        pjsua_perror("Media codec initialization has returned error", status); 
     475        return status; 
     476    } 
     477 
     478 
    469479    /* Done. */ 
    470480    return PJ_SUCCESS; 
     
    664674    pjsua.quit_flag = 1; 
    665675 
     676 
     677    /* Shutdown pjmedia-codec: */ 
     678 
     679    pjmedia_codec_deinit(); 
     680 
     681 
    666682    /* Destroy sound framework:  
    667683     * (this should be done in pjmedia_shutdown()) 
Note: See TracChangeset for help on using the changeset viewer.