History

lavfi: deprecate avfilter_graph_add_filter().

Since this function adds a standalone filter to a filter graph and we do not support creating such filters, there is no reason for this function to exist.

Anton Khirnov committed 13 years ago

Commit c2c98011 parent bc1a9853 files · +10 −1Browse files

Unified · Split

3 files
  1. doc/APIchanges +2 −1
  2. libavfilter/avfilter.h +6 −0
  3. libavfilter/avfiltergraph.c +2 −0
doc/APIchanges+2−1
@@ -16,7 +16,8 @@ API changes, most recent first: · 15 unmodified lines
1616 2013-xx-xx - lavfi 3.8.0
1717 Move all content from avfiltergraph.h to avfilter.h. Deprecate
1818 avfilterhraph.h, user applications should include just avfilter.h
19− Add avfilter_graph_alloc_filter(), deprecate avfilter_open().
19+ Add avfilter_graph_alloc_filter(), deprecate avfilter_open() and
20+ avfilter_graph_add_filter().
2021
2122 2013-xx-xx - lavfi 3.7.0 - avfilter.h
2223 Add AVFilter.priv_class for exporting filter options through the AVOptions API
libavfilter/avfilter.h+6−0
@@ -750,13 +750,19 @@ AVFilterContext *avfilter_graph_alloc_filter(AVFilterGraph *graph, · 749 unmodified lines
750750 */
751751 AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name);
752752
753+#if FF_API_AVFILTER_OPEN
753754 /**
754755 * Add an existing filter instance to a filter graph.
755756 *
756757 * @param graphctx the filter graph
757758 * @param filter the filter to be added
759+ *
760+ * @deprecated use avfilter_graph_alloc_filter() to allocate a filter in a
761+ * filter graph
758762 */
763+attribute_deprecated
759764 int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter);
765+#endif
760766
761767 /**
762768 * Create and add a filter instance into an existing graph.
libavfilter/avfiltergraph.c+2−0
@@ -58,6 +58,7 @@ void avfilter_graph_free(AVFilterGraph **graph) · 57 unmodified lines
5858 av_freep(graph);
5959 }
6060
61+#if FF_API_AVFILTER_OPEN
6162 int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)
6263 {
6364 AVFilterContext **filters = av_realloc(graph->filters,
@@ -74,6 +75,7 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) · 10 unmodified lines
7475
7576 return 0;
7677 }
78+#endif
7779
7880 int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt,
7981 const char *name, const char *args, void *opaque,

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