From 4d6a8a2bdb19c4380cc458759b7bd221942a028f Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 1 Jun 2012 14:46:54 +0200 Subject: lavfi: add avfilter_default_filter_name() The function is modelled after av_default_item_name(), and will print the name of the instance filter if defined, otherwise the name of the filter. This allows to show the instance name in the log, which is useful when debugging complex filter graphs. --- libavfilter/af_aformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/af_aformat.c') diff --git a/libavfilter/af_aformat.c b/libavfilter/af_aformat.c index 35e7db880a..1fcaee7535 100644 --- a/libavfilter/af_aformat.c +++ b/libavfilter/af_aformat.c @@ -55,7 +55,7 @@ static const AVOption options[] = { static const AVClass aformat_class = { .class_name = "aformat filter", - .item_name = av_default_item_name, + .item_name = avfilter_default_filter_name, .option = options, .version = LIBAVUTIL_VERSION_INT, .category = AV_CLASS_CATEGORY_FILTER, -- cgit v1.2.3