[FFmpeg-cvslog] avfilter: make avfilter_graph_get_filter use const string name
Yu Xiaolei
git at videolan.org
Fri Mar 14 23:31:13 CET 2014
ffmpeg | branch: master | Yu Xiaolei <dreifachstein at gmail.com> | Fri Mar 14 12:25:07 2014 +0800| [fbe9ae482d5138d14a7e9bd53291921289573485] | committer: Michael Niedermayer
avfilter: make avfilter_graph_get_filter use const string name
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fbe9ae482d5138d14a7e9bd53291921289573485
---
libavfilter/avfilter.h | 2 +-
libavfilter/avfiltergraph.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index ef7e8ca..086e9fe 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -1272,7 +1272,7 @@ AVFilterContext *avfilter_graph_alloc_filter(AVFilterGraph *graph,
* @return the pointer to the found filter instance or NULL if it
* cannot be found.
*/
-AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name);
+AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, const char *name);
#if FF_API_AVFILTER_OPEN
/**
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 1fb83c4..cfa4a44 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -281,7 +281,7 @@ static int graph_config_links(AVFilterGraph *graph, AVClass *log_ctx)
return 0;
}
-AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name)
+AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, const char *name)
{
int i;
More information about the ffmpeg-cvslog
mailing list