- Timestamp:
- Jan 22, 2008 11:58:17 AM (17 years ago)
- Location:
- pjproject/branches/users/nanang/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/users/nanang/pjmedia/include/pjmedia/types.h
r1639 r1725 64 64 * encoding_name. 65 65 */ 66 PJMEDIA_TYPE_UNKNOWN = 3 66 PJMEDIA_TYPE_UNKNOWN = 3, 67 68 /** The media is application. */ 69 PJMEDIA_TYPE_APPLICATION = 4 67 70 68 71 } pjmedia_type; -
pjproject/branches/users/nanang/pjmedia/src/pjmedia/session.c
r1689 r1725 51 51 static const pj_str_t ID_AUDIO = { "audio", 5}; 52 52 static const pj_str_t ID_VIDEO = { "video", 5}; 53 static const pj_str_t ID_APPLICATION = { "application", 11}; 53 54 static const pj_str_t ID_IN = { "IN", 2 }; 54 55 static const pj_str_t ID_IP4 = { "IP4", 3}; … … 176 177 si->type = PJMEDIA_TYPE_VIDEO; 177 178 179 } else if (pj_stricmp(&local_m->desc.media, &ID_APPLICATION) == 0) { 180 181 si->type = PJMEDIA_TYPE_APPLICATION; 182 178 183 } else { 179 184 180 185 si->type = PJMEDIA_TYPE_UNKNOWN; 181 186 return PJMEDIA_EINVALIMEDIATYPE; 187 182 188 } 183 189 … … 580 586 if (status != PJ_SUCCESS) 581 587 return status; 582 583 588 } 584 589
Note: See TracChangeset
for help on using the changeset viewer.