Commit d1b1a656 authored by James Almer's avatar James Almer

Merge commit '96a47364'

* commit '96a47364':
  lavfi: Drop deprecated non-const filter retrieval
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents de0b26ce 96a47364
...@@ -576,10 +576,7 @@ int avfilter_process_command(AVFilterContext *filter, const char *cmd, const cha ...@@ -576,10 +576,7 @@ int avfilter_process_command(AVFilterContext *filter, const char *cmd, const cha
static AVFilter *first_filter; static AVFilter *first_filter;
static AVFilter **last_filter = &first_filter; static AVFilter **last_filter = &first_filter;
#if !FF_API_NOCONST_GET_NAME const AVFilter *avfilter_get_by_name(const char *name)
const
#endif
AVFilter *avfilter_get_by_name(const char *name)
{ {
const AVFilter *f = NULL; const AVFilter *f = NULL;
......
...@@ -699,10 +699,7 @@ int avfilter_register(AVFilter *filter); ...@@ -699,10 +699,7 @@ int avfilter_register(AVFilter *filter);
* @return the filter definition, if any matching one is registered. * @return the filter definition, if any matching one is registered.
* NULL if none found. * NULL if none found.
*/ */
#if !FF_API_NOCONST_GET_NAME const AVFilter *avfilter_get_by_name(const char *name);
const
#endif
AVFilter *avfilter_get_by_name(const char *name);
/** /**
* Iterate over all registered filters. * Iterate over all registered filters.
......
...@@ -492,7 +492,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) ...@@ -492,7 +492,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
if (convert_needed) { if (convert_needed) {
AVFilterContext *convert; AVFilterContext *convert;
AVFilter *filter; const AVFilter *filter;
AVFilterLink *inlink, *outlink; AVFilterLink *inlink, *outlink;
char scale_args[256]; char scale_args[256];
char inst_name[30]; char inst_name[30];
...@@ -1218,7 +1218,7 @@ static int graph_insert_fifos(AVFilterGraph *graph, AVClass *log_ctx) ...@@ -1218,7 +1218,7 @@ static int graph_insert_fifos(AVFilterGraph *graph, AVClass *log_ctx)
for (j = 0; j < f->nb_inputs; j++) { for (j = 0; j < f->nb_inputs; j++) {
AVFilterLink *link = f->inputs[j]; AVFilterLink *link = f->inputs[j];
AVFilterContext *fifo_ctx; AVFilterContext *fifo_ctx;
AVFilter *fifo; const AVFilter *fifo;
char name[32]; char name[32];
if (!link->dstpad->needs_fifo) if (!link->dstpad->needs_fifo)
......
...@@ -52,9 +52,6 @@ ...@@ -52,9 +52,6 @@
#ifndef FF_API_OLD_FILTER_OPTS_ERROR #ifndef FF_API_OLD_FILTER_OPTS_ERROR
#define FF_API_OLD_FILTER_OPTS_ERROR (LIBAVFILTER_VERSION_MAJOR < 8) #define FF_API_OLD_FILTER_OPTS_ERROR (LIBAVFILTER_VERSION_MAJOR < 8)
#endif #endif
#ifndef FF_API_NOCONST_GET_NAME
#define FF_API_NOCONST_GET_NAME (LIBAVFILTER_VERSION_MAJOR < 7)
#endif
#ifndef FF_API_LAVR_OPTS #ifndef FF_API_LAVR_OPTS
#define FF_API_LAVR_OPTS (LIBAVFILTER_VERSION_MAJOR < 8) #define FF_API_LAVR_OPTS (LIBAVFILTER_VERSION_MAJOR < 8)
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment