Changeset 1725 for pjproject


Ignore:
Timestamp:
Jan 22, 2008 11:58:17 AM (17 years ago)
Author:
nanang
Message:

Ticket #457:
Added media type 'application'.

Location:
pjproject/branches/users/nanang/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/users/nanang/pjmedia/include/pjmedia/types.h

    r1639 r1725  
    6464     *  encoding_name. 
    6565     */ 
    66     PJMEDIA_TYPE_UNKNOWN = 3 
     66    PJMEDIA_TYPE_UNKNOWN = 3, 
     67 
     68    /** The media is application. */ 
     69    PJMEDIA_TYPE_APPLICATION = 4 
    6770 
    6871} pjmedia_type; 
  • pjproject/branches/users/nanang/pjmedia/src/pjmedia/session.c

    r1689 r1725  
    5151static const pj_str_t ID_AUDIO = { "audio", 5}; 
    5252static const pj_str_t ID_VIDEO = { "video", 5}; 
     53static const pj_str_t ID_APPLICATION = { "application", 11}; 
    5354static const pj_str_t ID_IN = { "IN", 2 }; 
    5455static const pj_str_t ID_IP4 = { "IP4", 3}; 
     
    176177        si->type = PJMEDIA_TYPE_VIDEO; 
    177178 
     179    } else if (pj_stricmp(&local_m->desc.media, &ID_APPLICATION) == 0) { 
     180 
     181        si->type = PJMEDIA_TYPE_APPLICATION; 
     182 
    178183    } else { 
    179184 
    180185        si->type = PJMEDIA_TYPE_UNKNOWN; 
    181186        return PJMEDIA_EINVALIMEDIATYPE; 
     187 
    182188    } 
    183189 
     
    580586        if (status != PJ_SUCCESS) 
    581587            return status; 
    582  
    583588    } 
    584589 
Note: See TracChangeset for help on using the changeset viewer.