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/vf_blackdetect.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libavfilter/vf_blackdetect.c') diff --git a/libavfilter/vf_blackdetect.c b/libavfilter/vf_blackdetect.c index ea45f0522e..909cb377bf 100644 --- a/libavfilter/vf_blackdetect.c +++ b/libavfilter/vf_blackdetect.c @@ -57,14 +57,9 @@ static const AVOption blackdetect_options[] = { { NULL }, }; -static const char *blackdetect_get_name(void *ctx) -{ - return "blackdetect"; -} - static const AVClass blackdetect_class = { .class_name = "BlackDetectContext", - .item_name = blackdetect_get_name, + .item_name = avfilter_default_filter_name, .option = blackdetect_options, }; -- cgit v1.2.3