avfilter: make avfilter_graph_get_filter use const string name

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/293/head
Yu Xiaolei 11 years ago committed by Michael Niedermayer
parent c17dea05f7
commit fbe9ae482d
  1. 2
      libavfilter/avfilter.h
  2. 2
      libavfilter/avfiltergraph.c

@ -1272,7 +1272,7 @@ AVFilterContext *avfilter_graph_alloc_filter(AVFilterGraph *graph,
* @return the pointer to the found filter instance or NULL if it * @return the pointer to the found filter instance or NULL if it
* cannot be found. * 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 #if FF_API_AVFILTER_OPEN
/** /**

@ -281,7 +281,7 @@ static int graph_config_links(AVFilterGraph *graph, AVClass *log_ctx)
return 0; return 0;
} }
AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name) AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, const char *name)
{ {
int i; int i;

Loading…
Cancel
Save