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 | 113 | * @param graph the filter graph where to link the parsed graph context |
| 114 | 114 | * @param filters string to be parsed |
| 115 | − * @param inputs linked list to the inputs of the graph | |
| 116 | − * @param outputs linked list to the outputs of the graph | |
| 115 | + * @param inputs linked list to the inputs of the graph, may be NULL. | |
| 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 | 119 | * @return zero on success, a negative AVERROR code on error |
| 118 | 120 | */ |
| 119 | 121 | int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, |
| 120 | − AVFilterInOut *inputs, AVFilterInOut *outputs, | |
| 122 | + AVFilterInOut **inputs, AVFilterInOut **outputs, | |
| 121 | 123 | void *log_ctx); |
| 122 | 124 | |
| 123 | 125 | #endif /* AVFILTER_AVFILTERGRAPH_H */ |