Deprecated in 39a09e995d32d16e4f8c87a6ff5273cb9d98146e.
Unified · Split
| @@ -232,11 +232,12 @@ void ff_avfilter_link_set_out_status(AVFilterLink *link, int status, int64_t pts · 231 unmodified lines | ||
| 232 | 232 | ff_filter_set_ready(link->src, 200); |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | +#if FF_API_FILTER_LINK_SET_CLOSED | |
| 235 | 236 | void avfilter_link_set_closed(AVFilterLink *link, int closed) |
| 236 | 237 | { |
| 237 | 238 | ff_avfilter_link_set_out_status(link, closed ? AVERROR_EOF : 0, AV_NOPTS_VALUE); |
| 238 | 239 | } |
| 239 | − | |
| 240 | +#endif | |
| 240 | 241 | int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt, |
| 241 | 242 | unsigned filt_srcpad_idx, unsigned filt_dstpad_idx) |
| 242 | 243 | { |
| @@ -681,7 +681,7 @@ void avfilter_link_free(AVFilterLink **link); · 680 unmodified lines | ||
| 681 | 681 | attribute_deprecated |
| 682 | 682 | int avfilter_link_get_channels(AVFilterLink *link); |
| 683 | 683 | #endif |
| 684 | − | |
| 684 | +#if FF_API_FILTER_LINK_SET_CLOSED | |
| 685 | 685 | /** |
| 686 | 686 | * Set the closed field of a link. |
| 687 | 687 | * @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 | ||
| 689 | 689 | */ |
| 690 | 690 | attribute_deprecated |
| 691 | 691 | void avfilter_link_set_closed(AVFilterLink *link, int closed); |
| 692 | − | |
| 692 | +#endif | |
| 693 | 693 | /** |
| 694 | 694 | * Negotiate the media format, dimensions, etc of all inputs to a filter. |
| 695 | 695 | * |
| @@ -65,5 +65,8 @@ · 64 unmodified lines | ||
| 65 | 65 | #ifndef FF_API_NEXT |
| 66 | 66 | #define FF_API_NEXT (LIBAVFILTER_VERSION_MAJOR < 8) |
| 67 | 67 | #endif |
| 68 | +#ifndef FF_API_FILTER_LINK_SET_CLOSED | |
| 69 | +#define FF_API_FILTER_LINK_SET_CLOSED (LIBAVFILTER_VERSION_MAJOR < 8) | |
| 70 | +#endif | |
| 68 | 71 | |
| 69 | 72 | #endif /* AVFILTER_VERSION_H */ |