Ignore:
Timestamp:
Mar 2, 2006 9:26:09 PM (18 years ago)
Author:
bennylp
Message:

Fixed compilation warnings and errors in pjsip-perf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/sdp.c

    r199 r271  
    568568    m->desc.fmt_count = rhs->desc.fmt_count; 
    569569    for (i=0; i<rhs->desc.fmt_count; ++i) 
    570         m->desc.fmt[i] = rhs->desc.fmt[i]; 
     570        pj_strdup(pool, &m->desc.fmt[i], &rhs->desc.fmt[i]); 
    571571 
    572572    if (rhs->conn) { 
     
    679679    *p++ = '\n'; 
    680680 
     681    /* Connection line (c=) if exist. */ 
     682    if (ses->conn) { 
     683        printed = print_connection_info(ses->conn, p, end-p); 
     684        if (printed < 1) { 
     685            return -1; 
     686        } 
     687        p += printed; 
     688    } 
     689 
     690 
    681691    /* Time */ 
    682692    if ((end-p) < 24) { 
     
    692702    *p++ = '\r'; 
    693703    *p++ = '\n'; 
    694  
    695     /* Connection line (c=) if exist. */ 
    696     if (ses->conn) { 
    697         printed = print_connection_info(ses->conn, p, end-p); 
    698         if (printed < 1) { 
    699             return -1; 
    700         } 
    701         p += printed; 
    702     } 
    703704 
    704705    /* Print all attribute (a=) lines. */ 
Note: See TracChangeset for help on using the changeset viewer.