Ignore:
Timestamp:
Apr 11, 2011 3:16:48 PM (13 years ago)
Author:
bennylp
Message:

Re #1214 (app): enlarge call dump buffer if RTCP XR is enabled, and added option to disable stderr (only works on Posix system)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjsip-apps/src/pjsua/pjsua_app.c

    r3500 r3519  
    138138static pj_str_t         uri_arg; 
    139139 
    140 static char some_buf[1024 * 3]; 
     140#if defined(PJMEDIA_HAS_RTCP_XR) && (PJMEDIA_HAS_RTCP_XR != 0) 
     141#   define SOME_BUF_SIZE        (1024 * 10) 
     142#else 
     143#   define SOME_BUF_SIZE        (1024 * 3) 
     144#endif 
     145 
     146static char some_buf[SOME_BUF_SIZE]; 
    141147 
    142148#ifdef STEREO_DEMO 
     
    196202    puts  ("  --no-color          Disable colorful logging"); 
    197203    puts  ("  --light-bg          Use dark colors for light background (default is dark bg)"); 
     204    puts  ("  --no-stderr         Disable stderr"); 
    198205 
    199206    puts  (""); 
     
    522529    int option_index; 
    523530    enum { OPT_CONFIG_FILE=127, OPT_LOG_FILE, OPT_LOG_LEVEL, OPT_APP_LOG_LEVEL,  
    524            OPT_LOG_APPEND, OPT_COLOR, OPT_NO_COLOR, OPT_LIGHT_BG, 
     531           OPT_LOG_APPEND, OPT_COLOR, OPT_NO_COLOR, OPT_LIGHT_BG, OPT_NO_STDERR, 
    525532           OPT_HELP, OPT_VERSION, OPT_NULL_AUDIO, OPT_SND_AUTO_CLOSE, 
    526533           OPT_LOCAL_PORT, OPT_IP_ADDR, OPT_PROXY, OPT_OUTBOUND_PROXY,  
     
    567574        { "no-color",   0, 0, OPT_NO_COLOR}, 
    568575        { "light-bg",           0, 0, OPT_LIGHT_BG}, 
     576        { "no-stderr",  0, 0, OPT_NO_STDERR}, 
    569577        { "help",       0, 0, OPT_HELP}, 
    570578        { "version",    0, 0, OPT_VERSION}, 
     
    771779            break; 
    772780 
     781        case OPT_NO_STDERR: 
     782            freopen("/dev/null", "w", stderr); 
     783            break; 
     784 
    773785        case OPT_HELP: 
    774786            usage(); 
Note: See TracChangeset for help on using the changeset viewer.