lavfi: export ff_filter_set_ready() to the library.

This commit is contained in:
Nicolas George 2016-12-20 15:57:19 +01:00
parent 4c24f3ac16
commit 918891e146
2 changed files with 13 additions and 1 deletions

View File

@ -190,7 +190,7 @@ int avfilter_link_get_channels(AVFilterLink *link)
return link->channels;
}
static void ff_filter_set_ready(AVFilterContext *filter, unsigned priority)
void ff_filter_set_ready(AVFilterContext *filter, unsigned priority)
{
filter->ready = FFMAX(filter->ready, priority);
}

View File

@ -27,6 +27,18 @@
#include "avfilter.h"
/**
* Mark a filter ready and schedule it for activation.
*
* This is automatically done when something happens to the filter (queued
* frame, status change, request on output).
* Filters implementing the activate callback can call it directly to
* perform one more round of processing later.
* It is also useful for filters reacting to external or asynchronous
* events.
*/
void ff_filter_set_ready(AVFilterContext *filter, unsigned priority);
/**
* Test and acknowledge the change of status on the link.
*