avfilter/avfilter: Remove avfilter_link_set_closed() on bump
Deprecated in 39a09e995d32d16e4f8c87a6ff5273cb9d98146e. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
a7f841718f
commit
fec3c730e6
@ -232,11 +232,12 @@ void ff_avfilter_link_set_out_status(AVFilterLink *link, int status, int64_t pts
|
|||||||
ff_filter_set_ready(link->src, 200);
|
ff_filter_set_ready(link->src, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if FF_API_FILTER_LINK_SET_CLOSED
|
||||||
void avfilter_link_set_closed(AVFilterLink *link, int closed)
|
void avfilter_link_set_closed(AVFilterLink *link, int closed)
|
||||||
{
|
{
|
||||||
ff_avfilter_link_set_out_status(link, closed ? AVERROR_EOF : 0, AV_NOPTS_VALUE);
|
ff_avfilter_link_set_out_status(link, closed ? AVERROR_EOF : 0, AV_NOPTS_VALUE);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
|
int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
|
||||||
unsigned filt_srcpad_idx, unsigned filt_dstpad_idx)
|
unsigned filt_srcpad_idx, unsigned filt_dstpad_idx)
|
||||||
{
|
{
|
||||||
|
@ -681,7 +681,7 @@ void avfilter_link_free(AVFilterLink **link);
|
|||||||
attribute_deprecated
|
attribute_deprecated
|
||||||
int avfilter_link_get_channels(AVFilterLink *link);
|
int avfilter_link_get_channels(AVFilterLink *link);
|
||||||
#endif
|
#endif
|
||||||
|
#if FF_API_FILTER_LINK_SET_CLOSED
|
||||||
/**
|
/**
|
||||||
* Set the closed field of a link.
|
* Set the closed field of a link.
|
||||||
* @deprecated applications are not supposed to mess with links, they should
|
* @deprecated applications are not supposed to mess with links, they should
|
||||||
@ -689,7 +689,7 @@ int avfilter_link_get_channels(AVFilterLink *link);
|
|||||||
*/
|
*/
|
||||||
attribute_deprecated
|
attribute_deprecated
|
||||||
void avfilter_link_set_closed(AVFilterLink *link, int closed);
|
void avfilter_link_set_closed(AVFilterLink *link, int closed);
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* Negotiate the media format, dimensions, etc of all inputs to a filter.
|
* Negotiate the media format, dimensions, etc of all inputs to a filter.
|
||||||
*
|
*
|
||||||
|
@ -65,5 +65,8 @@
|
|||||||
#ifndef FF_API_NEXT
|
#ifndef FF_API_NEXT
|
||||||
#define FF_API_NEXT (LIBAVFILTER_VERSION_MAJOR < 8)
|
#define FF_API_NEXT (LIBAVFILTER_VERSION_MAJOR < 8)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef FF_API_FILTER_LINK_SET_CLOSED
|
||||||
|
#define FF_API_FILTER_LINK_SET_CLOSED (LIBAVFILTER_VERSION_MAJOR < 8)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* AVFILTER_VERSION_H */
|
#endif /* AVFILTER_VERSION_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user