diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-06-10 17:22:52 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-06-10 17:23:58 +0200 |
commit | ee1748ab539b46e34808ef7d9b496e2d7fd24350 (patch) | |
tree | 41a2e0315000b38f6178ad773c1a5571113ee36a | |
parent | 91bdced363cd21250b55667b6dbef96c676d26fc (diff) | |
download | ffmpeg-streaming-ee1748ab539b46e34808ef7d9b496e2d7fd24350.zip ffmpeg-streaming-ee1748ab539b46e34808ef7d9b496e2d7fd24350.tar.gz |
lavfi: fix signature for default_filter_name()
Return a const char *, fix warnings:
libavfilter/avfilter.c: In function ‘default_filter_name’:
libavfilter/avfilter.c:414:5: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]
libavfilter/avfilter.c: At top level:
libavfilter/avfilter.c:419:5: warning: initialization from incompatible pointer type [enabled by default]
libavfilter/avfilter.c:419:5: warning: (near initialization for ‘avfilter_class.item_name’) [enabled by default]
-rw-r--r-- | libavfilter/avfilter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index dfa2d2b..f8fc483 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -410,7 +410,7 @@ static int pad_count(const AVFilterPad *pads) return count; } -static char *default_filter_name(void *filter_ctx) +static const char *default_filter_name(void *filter_ctx) { AVFilterContext *ctx = filter_ctx; return ctx->name ? ctx->name : ctx->filter->name; |