# mccdSdpAddMediaEnd

Indicates the ending of the media description field (m).

#### Prototype

uint32_t mccdSdpAddMediaEnd ( MCC_SDP_CONTEXT_W * context)

Argument | Description
context | Pointer to the MCC_SDP_CONTEXT_W structure that stores an SDP message as you create its components.

#### Details

Call mccdSdpAddMediaEnd after using mccdSdpAddMediaBegin and mccdSdpAddMediaFormat. For more information, see Creating an SDP message.

#### Return values

mccdSdpAddMediaEnd returns either MCCSDP_OK (function completed successfully) or MCCSDP_MEMORY_ERROR.

#### Example

This example:

mccdSdpAddMediaEnd (pc );

terminates the sample media description field created by mccdSdpAddMediaBegin and mccdSdpAddMediaFormat.