avfiltergraph: change the syntax of avfilter_graph_parse()

Make it returns the list of open inputs and outputs, so it can be
reused by applications.

Breaks API/ABI.
This commit is contained in:
Stefano Sabatini
2011-06-11 15:16:02 +02:00
parent 86909dd5f7
commit 6119b23a36
6 changed files with 22 additions and 17 deletions

View File

@@ -112,12 +112,14 @@ typedef struct AVFilterInOut {
*
* @param graph the filter graph where to link the parsed graph context
* @param filters string to be parsed
* @param inputs linked list to the inputs of the graph
* @param outputs linked list to the outputs of the graph
* @param inputs linked list to the inputs of the graph, may be NULL.
* It is updated to contain the list of open inputs after the parsing.
* @param outputs linked list to the outputs of the graph, may be NULL.
* It is updated to contain the list of open outputs after the parsing.
* @return zero on success, a negative AVERROR code on error
*/
int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
AVFilterInOut *inputs, AVFilterInOut *outputs,
AVFilterInOut **inputs, AVFilterInOut **outputs,
void *log_ctx);
#endif /* AVFILTER_AVFILTERGRAPH_H */