Ignore:
Timestamp:
Mar 17, 2008 2:07:53 PM (16 years ago)
Author:
bennylp
Message:

Ticket #507: committed and tested g722 patch on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r1866 r1870  
    140140#endif  /* PJMEDIA_HAS_G711_CODEC */ 
    141141 
     142#if PJMEDIA_HAS_G722_CODEC 
     143    status = pjmedia_codec_g722_init( pjsua_var.med_endpt ); 
     144    if (status != PJ_SUCCESS) { 
     145        pjsua_perror(THIS_FILE, "Error initializing G722 codec", 
     146                     status); 
     147        return status; 
     148    } 
     149#endif  /* PJMEDIA_HAS_G722_CODEC */ 
     150 
    142151#if PJMEDIA_HAS_L16_CODEC 
    143152    /* Register L16 family codecs, but disable all */ 
     
    501510#       endif   /* PJMEDIA_HAS_G711_CODEC */ 
    502511 
     512#       if PJMEDIA_HAS_G722_CODEC 
     513            pjmedia_codec_g722_deinit(); 
     514#       endif   /* PJMEDIA_HAS_G722_CODEC */ 
     515 
    503516#       if PJMEDIA_HAS_L16_CODEC 
    504517            pjmedia_codec_l16_deinit(); 
    505518#       endif   /* PJMEDIA_HAS_L16_CODEC */ 
    506  
    507519 
    508520        pjmedia_endpt_destroy(pjsua_var.med_endpt); 
Note: See TracChangeset for help on using the changeset viewer.