Changeset 5190 for pjproject/trunk
- Timestamp:
- Oct 23, 2015 9:45:48 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp.c
r5106 r5190 1243 1243 if (attr) { 1244 1244 if (media) { 1245 pjmedia_sdp_media_add_attr(media, attr); 1245 if (media->attr_count < PJMEDIA_MAX_SDP_ATTR) 1246 pjmedia_sdp_media_add_attr(media, attr); 1247 else 1248 PJ_PERROR(2, (THIS_FILE, PJ_ETOOMANY, 1249 "Error adding media attribute, " 1250 "attribute is ignored")); 1246 1251 } else { 1247 pjmedia_sdp_session_add_attr(session, attr); 1252 if (session->attr_count < PJMEDIA_MAX_SDP_ATTR) 1253 pjmedia_sdp_session_add_attr(session, attr); 1254 else 1255 PJ_PERROR(2, (THIS_FILE, PJ_ETOOMANY, 1256 "Error adding session attribute" 1257 ", attribute is ignored")); 1248 1258 } 1249 1259 } … … 1295 1305 parse_bandwidth_info(&scanner, bandw, &ctx); 1296 1306 if (media) { 1297 media->bandw[media->bandw_count++] = bandw; 1307 if (media->bandw_count < PJMEDIA_MAX_SDP_BANDW) 1308 media->bandw[media->bandw_count++] = bandw; 1309 else 1310 PJ_PERROR(2, (THIS_FILE, PJ_ETOOMANY, 1311 "Error adding media bandwidth " 1312 "info, info is ignored")); 1298 1313 } else { 1299 session->bandw[session->bandw_count++] = bandw; 1314 if (session->bandw_count < PJMEDIA_MAX_SDP_BANDW) 1315 session->bandw[session->bandw_count++] = bandw; 1316 else 1317 PJ_PERROR(2, (THIS_FILE, PJ_ETOOMANY, 1318 "Error adding session bandwidth " 1319 "info, info is ignored")); 1300 1320 } 1301 1321 break;
Note: See TracChangeset
for help on using the changeset viewer.