diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-06-01 16:46:54 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-06-04 02:54:57 +0400 |
commit | 4d6a8a2bdb19c4380cc458759b7bd221942a028f (patch) | |
tree | 1488a8dd15ae00c556a1363e760370fcce8a597b /libavfilter/vsrc_cellauto.c | |
parent | 7d82020fcb7f81fcbbd30b7546ba62af45f1a33c (diff) |
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.
Diffstat (limited to 'libavfilter/vsrc_cellauto.c')
-rw-r--r-- | libavfilter/vsrc_cellauto.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vsrc_cellauto.c b/libavfilter/vsrc_cellauto.c index d17b5e453c..93bdded590 100644 --- a/libavfilter/vsrc_cellauto.c +++ b/libavfilter/vsrc_cellauto.c @@ -76,14 +76,9 @@ static const AVOption cellauto_options[] = { { NULL }, }; -static const char *cellauto_get_name(void *ctx) -{ - return "cellauto"; -} - static const AVClass cellauto_class = { "CellAutoContext", - cellauto_get_name, + avfilter_default_filter_name, cellauto_options }; |