[FFmpeg-cvslog] lavfi: fix signature for default_filter_name()
Stefano Sabatini
git at videolan.org
Sun Jun 10 17:25:46 CEST 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Jun 10 17:22:52 2012 +0200| [ee1748ab539b46e34808ef7d9b496e2d7fd24350] | committer: Stefano Sabatini
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]
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ee1748ab539b46e34808ef7d9b496e2d7fd24350
---
libavfilter/avfilter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list