rtpdec: Rename the free method to close

Many of these functions were named foo_free_context, and since
the functions no longer should free the context itself, only
allocated elements within it, the previous naming was slightly
misleading.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2015-02-24 17:01:48 +02:00
parent 8e32b1f096
commit d594dbecce
18 changed files with 38 additions and 38 deletions

View file

@ -32,7 +32,7 @@ struct PayloadContext {
AVIOContext *fragment;
};
static void ac3_free_context(PayloadContext *data)
static void ac3_close_context(PayloadContext *data)
{
ffio_free_dyn_buf(&data->fragment);
}
@ -128,6 +128,6 @@ RTPDynamicProtocolHandler ff_ac3_dynamic_handler = {
.codec_id = AV_CODEC_ID_AC3,
.need_parsing = AVSTREAM_PARSE_FULL,
.priv_data_size = sizeof(PayloadContext),
.free = ac3_free_context,
.close = ac3_close_context,
.parse_packet = ac3_handle_packet,
};