History

lavfi: fix signature for avfilter_graph_parse() and avfilter_graph_config()

Require "void *" rather than "AVClass *" for the log context type.

Stefano Sabatini committed 15 years ago

Commit 57fa3141 parent 64abd374 files · +5 −5Browse files

Unified · Split

4 files
  1. libavfilter/avfilter.h +1 −1
  2. libavfilter/avfiltergraph.c +1 −1
  3. libavfilter/avfiltergraph.h +2 −2
  4. libavfilter/graphparser.c +1 −1
libavfilter/avfilter.h+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030
3131 #define LIBAVFILTER_VERSION_MAJOR 2
3232 #define LIBAVFILTER_VERSION_MINOR 7
33−#define LIBAVFILTER_VERSION_MICRO 0
33+#define LIBAVFILTER_VERSION_MICRO 1
3434
3535 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
3636 LIBAVFILTER_VERSION_MINOR, \
libavfilter/avfiltergraph.c+1−1
@@ -229,7 +229,7 @@ int ff_avfilter_graph_config_formats(AVFilterGraph *graph, AVClass *log_ctx) · 228 unmodified lines
229229 return 0;
230230 }
231231
232−int avfilter_graph_config(AVFilterGraph *graphctx, AVClass *log_ctx)
232+int avfilter_graph_config(AVFilterGraph *graphctx, void *log_ctx)
233233 {
234234 int ret;
235235
libavfilter/avfiltergraph.h+2−2
@@ -76,7 +76,7 @@ int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt, · 75 unmodified lines
7676 * @param log_ctx context used for logging
7777 * @return 0 in case of success, a negative AVERROR code otherwise
7878 */
79−int avfilter_graph_config(AVFilterGraph *graphctx, AVClass *log_ctx);
79+int avfilter_graph_config(AVFilterGraph *graphctx, void *log_ctx);
8080
8181 /**
8282 * Free a graph, destroy its links, and set *graph to NULL.
@@ -118,6 +118,6 @@ typedef struct AVFilterInOut { · 35 unmodified lines
118118 */
119119 int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
120120 AVFilterInOut *inputs, AVFilterInOut *outputs,
121− AVClass *log_ctx);
121+ void *log_ctx);
122122
123123 #endif /* AVFILTER_AVFILTERGRAPH_H */
libavfilter/graphparser.c+1−1
@@ -331,7 +331,7 @@ static int parse_outputs(const char **buf, AVFilterInOut **curr_inputs, · 330 unmodified lines
331331
332332 int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
333333 AVFilterInOut *open_inputs,
334− AVFilterInOut *open_outputs, AVClass *log_ctx)
334+ AVFilterInOut *open_outputs, void *log_ctx)
335335 {
336336 int index = 0, ret;
337337 char chr = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t