History

avfilter/avfilter: Remove avfilter_link_set_closed() on bump

Deprecated in 39a09e995d32d16e4f8c87a6ff5273cb9d98146e.

Andreas Rheinhardt committed 5 years ago

Commit fec3c731 parent a7f84173 files · +7 −3Browse files

Unified · Split

3 files
  1. libavfilter/avfilter.c +2 −1
  2. libavfilter/avfilter.h +2 −2
  3. libavfilter/version.h +3 −0
libavfilter/avfilter.c+2−1
@@ -232,11 +232,12 @@ void ff_avfilter_link_set_out_status(AVFilterLink *link, int status, int64_t pts · 231 unmodified lines
232232 ff_filter_set_ready(link->src, 200);
233233 }
234234
235+#if FF_API_FILTER_LINK_SET_CLOSED
235236 void avfilter_link_set_closed(AVFilterLink *link, int closed)
236237 {
237238 ff_avfilter_link_set_out_status(link, closed ? AVERROR_EOF : 0, AV_NOPTS_VALUE);
238239 }
239−
240+#endif
240241 int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
241242 unsigned filt_srcpad_idx, unsigned filt_dstpad_idx)
242243 {
libavfilter/avfilter.h+2−2
@@ -681,7 +681,7 @@ void avfilter_link_free(AVFilterLink **link); · 680 unmodified lines
681681 attribute_deprecated
682682 int avfilter_link_get_channels(AVFilterLink *link);
683683 #endif
684−
684+#if FF_API_FILTER_LINK_SET_CLOSED
685685 /**
686686 * Set the closed field of a link.
687687 * @deprecated applications are not supposed to mess with links, they should
@@ -689,7 +689,7 @@ int avfilter_link_get_channels(AVFilterLink *link); · 1 unmodified line
689689 */
690690 attribute_deprecated
691691 void avfilter_link_set_closed(AVFilterLink *link, int closed);
692−
692+#endif
693693 /**
694694 * Negotiate the media format, dimensions, etc of all inputs to a filter.
695695 *
libavfilter/version.h+3−0
@@ -65,5 +65,8 @@ · 64 unmodified lines
6565 #ifndef FF_API_NEXT
6666 #define FF_API_NEXT (LIBAVFILTER_VERSION_MAJOR < 8)
6767 #endif
68+#ifndef FF_API_FILTER_LINK_SET_CLOSED
69+#define FF_API_FILTER_LINK_SET_CLOSED (LIBAVFILTER_VERSION_MAJOR < 8)
70+#endif
6871
6972 #endif /* AVFILTER_VERSION_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