Deleting Media From the SDP Media Structure
int sdp_delete_media(sdp_media_t **l_media, sdp_media_t *media);
The sdp_delete_media()
function deletes the media
entry specified by the media parameter from the media
list. This function finds the specified media entry by calling the sdp_find_media()
function. This function frees the memory that is allocated to
the media structure after deleting the media entry.
For more information, see the
sdp_delete_media(3COMMPUTIL) man page.