Changeset 3378 for pjproject


Ignore:
Timestamp:
Dec 2, 2010 3:46:11 AM (14 years ago)
Author:
nanang
Message:

Misc (re #1151): Fixed pjsip_multipart_create() in initializing media type, should use pjsip_media_type_init() (thanks Dan Price for the report).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_multipart.c

    r3342 r3378  
    227227        pjsip_media_type_cp(pool, &body->content_type, ctype); 
    228228    } else { 
    229         const pj_str_t STR_MULTIPART = {"multipart", 9}; 
    230         const pj_str_t STR_MIXED = { "mixed", 5 }; 
    231  
    232         body->content_type.type = STR_MULTIPART; 
    233         body->content_type.subtype = STR_MIXED; 
     229        pj_str_t STR_MULTIPART = {"multipart", 9}; 
     230        pj_str_t STR_MIXED = { "mixed", 5 }; 
     231 
     232        pjsip_media_type_init(&body->content_type, 
     233                              &STR_MULTIPART, &STR_MIXED); 
    234234    } 
    235235 
Note: See TracChangeset for help on using the changeset viewer.