Home
last modified time | relevance | path

Searched refs:new_media (Results 1 – 2 of 2) sorted by relevance

/titanic_50/usr/src/lib/libcommputil/common/
H A Dsdp_parse.c870 sdp_media_t *new_media; in sdp_parse_media() local
878 new_media = calloc(1, sizeof (sdp_media_t)); in sdp_parse_media()
879 if (new_media == NULL) { in sdp_parse_media()
883 new_media->m_session = session; in sdp_parse_media()
889 COMMP_COPY_STR(new_media->m_name, begin, current - begin); in sdp_parse_media()
890 if (new_media->m_name == NULL) { in sdp_parse_media()
891 sdp_free_media(new_media); in sdp_parse_media()
906 if (commp_atoui(begin, current, &new_media->m_port) != 0) in sdp_parse_media()
915 if (commp_atoi(begin, current, &new_media->m_portcount) != 0) in sdp_parse_media()
918 new_media->m_portcount = 1; in sdp_parse_media()
[all …]
H A Dsdp.c672 sdp_media_t *new_media; in sdp_add_media() local
681 new_media = calloc(1, sizeof (sdp_media_t)); in sdp_add_media()
682 if (new_media == NULL) { in sdp_add_media()
685 new_media->m_session = session; in sdp_add_media()
686 new_media->m_port = port; in sdp_add_media()
687 new_media->m_portcount = portcount; in sdp_add_media()
688 if ((ret = commp_add_str(&new_media->m_name, name, strlen(name))) != 0) in sdp_add_media()
690 if ((ret = commp_add_str(&new_media->m_proto, protocol, in sdp_add_media()
694 if ((ret = sdp_str_to_list(&new_media->m_format, fmt, in sdp_add_media()
700 session->s_media = new_media; in sdp_add_media()
[all …]