Lines Matching refs:new_origin
253 sdp_origin_t *new_origin = NULL;
262 new_origin = calloc(1, sizeof (sdp_origin_t));
263 if (new_origin == NULL) {
272 COMMP_COPY_STR(new_origin->o_username, begin, current - begin);
273 if (new_origin->o_username == NULL) {
274 sdp_free_origin(new_origin);
283 if (commp_strtoull(begin, current, &new_origin->o_id) != 0)
289 if (commp_strtoull(begin, current, &new_origin->o_version) != 0)
296 COMMP_COPY_STR(new_origin->o_nettype, begin, current - begin);
297 if (new_origin->o_nettype == NULL) {
298 sdp_free_origin(new_origin);
308 COMMP_COPY_STR(new_origin->o_addrtype, begin, current - begin);
309 if (new_origin->o_addrtype == NULL) {
310 sdp_free_origin(new_origin);
319 COMMP_COPY_STR(new_origin->o_address, begin, current - begin);
320 if (new_origin->o_address == NULL) {
321 sdp_free_origin(new_origin);
325 *origin = new_origin;
329 sdp_free_origin(new_origin);