lavfi: remove avfilter_default_item_name() from public API

The function was introduced in 4d6a8a2bdb and is not used anymore
outside avfilter.c.

This avoids to pollute the public API with an apparently unnecessary
function. The function was introduced a few days ago, so removing it from
the public API should do no much harm.
This commit is contained in:
Stefano Sabatini 2012-06-05 18:58:51 +02:00
parent fe16ca1b91
commit ad347bf459
4 changed files with 3 additions and 12 deletions

View File

@ -18,9 +18,6 @@ API changes, most recent first:
2012-06-05 - xxxxxxx - lavc 54.24.100
Add pkt_duration field to AVFrame.
2012-06-04 - xxxxxxx - lafi 2.78.100
Add avfilter_default_filter_name() function in avfilter.h.
2012-05-24 - xxxxxxx - lavu 51.54.100
Move AVPALETTE_SIZE and AVPALETTE_COUNT macros from
libavcodec/avcodec.h to libavutil/pixfmt.h.

View File

@ -407,7 +407,7 @@ static int pad_count(const AVFilterPad *pads)
return count;
}
const char *avfilter_default_filter_name(void *filter_ctx)
static char *default_filter_name(void *filter_ctx)
{
AVFilterContext *ctx = filter_ctx;
return ctx->name ? ctx->name : ctx->filter->name;
@ -415,7 +415,7 @@ const char *avfilter_default_filter_name(void *filter_ctx)
static const AVClass avfilter_class = {
.class_name = "AVFilter",
.item_name = avfilter_default_filter_name,
.item_name = default_filter_name,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_FILTER,
};

View File

@ -621,12 +621,6 @@ struct AVFilterContext {
struct AVFilterCommand *command_queue;
};
/**
* Print the name of the filter given a filter context.
*/
const char *avfilter_default_filter_name(void *filter_ctx);
#if FF_API_PACKING
enum AVFilterPacking {
AVFILTER_PACKED = 0,

View File

@ -30,7 +30,7 @@
#define LIBAVFILTER_VERSION_MAJOR 2
#define LIBAVFILTER_VERSION_MINOR 78
#define LIBAVFILTER_VERSION_MICRO 100
#define LIBAVFILTER_VERSION_MICRO 101
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \