Make it returns the list of open inputs and outputs, so it can be reused by applications. Breaks API/ABI.
Showing the changes to libavfilter/avfiltergraph.h (1 of 6 files). Show all
Unified · Split
| @@ -112,12 +112,14 @@ typedef struct AVFilterInOut { · 111 unmodified lines | |||
| 112 | * | 112 | * |
| 113 | * @param graph the filter graph where to link the parsed graph context | 113 | * @param graph the filter graph where to link the parsed graph context |
| 114 | * @param filters string to be parsed | 114 | * @param filters string to be parsed |
| 115 | * @param inputs linked list to the inputs of the graph | 115 | * @param inputs linked list to the inputs of the graph, may be NULL. |
| 116 | * @param outputs linked list to the outputs of the graph | 116 | * It is updated to contain the list of open inputs after the parsing. |
| 117 | * @param outputs linked list to the outputs of the graph, may be NULL. | ||
| 118 | * It is updated to contain the list of open outputs after the parsing. | ||
| 117 | * @return zero on success, a negative AVERROR code on error | 119 | * @return zero on success, a negative AVERROR code on error |
| 118 | */ | 120 | */ |
| 119 | int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, | 121 | int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, |
| 120 | AVFilterInOut *inputs, AVFilterInOut *outputs, | 122 | AVFilterInOut **inputs, AVFilterInOut **outputs, |
| 121 | void *log_ctx); | 123 | void *log_ctx); |
| 122 | 124 | ||
| 123 | #endif /* AVFILTER_AVFILTERGRAPH_H */ | 125 | #endif /* AVFILTER_AVFILTERGRAPH_H */ |