Lines Matching refs:new_media
870 sdp_media_t *new_media;
878 new_media = calloc(1, sizeof (sdp_media_t));
879 if (new_media == NULL) {
883 new_media->m_session = session;
889 COMMP_COPY_STR(new_media->m_name, begin, current - begin);
890 if (new_media->m_name == NULL) {
891 sdp_free_media(new_media);
906 if (commp_atoui(begin, current, &new_media->m_port) != 0)
915 if (commp_atoi(begin, current, &new_media->m_portcount) != 0)
918 new_media->m_portcount = 1;
925 COMMP_COPY_STR(new_media->m_proto, begin, current - begin);
926 if (new_media->m_proto == NULL) {
927 sdp_free_media(new_media);
942 if (add_value_to_list(&new_media->m_format, begin,
944 sdp_free_media(new_media);
956 session->s_media = new_media;
960 tmp->m_next = new_media;
962 return (new_media);
965 sdp_free_media(new_media);