History

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.

Stefano Sabatini committed 15 years ago

Commit 6119b231 parent 86909dd6 files · +22 −17Browse files

Showing the changes to libavfilter/avfiltergraph.h (1 of 6 files). Show all

Unified · Split

libavfilter/avfiltergraph.h+5−3
@@ -112,12 +112,14 @@ typedef struct AVFilterInOut { · 111 unmodified lines
112 *112 *
113 * @param graph the filter graph where to link the parsed graph context113 * @param graph the filter graph where to link the parsed graph context
114 * @param filters string to be parsed114 * @param filters string to be parsed
115 * @param inputs linked list to the inputs of the graph115 * @param inputs linked list to the inputs of the graph, may be NULL.
116 * @param outputs linked list to the outputs of the graph116 * 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 error119 * @return zero on success, a negative AVERROR code on error
118 */120 */
119int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,121int 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 */

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