Changeset 177 for pjproject/trunk


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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/build/pjsip.dsw

    r127 r177  
    4141 
    4242Project: "pjmedia"=..\..\pjmedia\build\pjmedia.dsp - Package Owner=<4> 
     43 
     44Package=<5> 
     45{{{ 
     46}}} 
     47 
     48Package=<4> 
     49{{{ 
     50}}} 
     51 
     52############################################################################### 
     53 
     54Project: "pjmedia_codec"=..\..\pjmedia\build\pjmedia_codec.dsp - Package Owner=<4> 
    4355 
    4456Package=<5> 
     
    117129    Project_Dep_Name pjsdp 
    118130    End Project Dependency 
     131    Begin Project Dependency 
     132    Project_Dep_Name pjmedia_codec 
     133    End Project Dependency 
    119134}}} 
    120135 
  • 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.