avfilter: make avfilter_graph_get_filter use const string name

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Yu Xiaolei 2014-03-14 12:25:07 +08:00 committed by Michael Niedermayer
parent c17dea05f7
commit fbe9ae482d
2 changed files with 2 additions and 2 deletions

View File

@ -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
/**

View File

@ -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;