lavfi: export ff_filter_set_ready() to the library.

pull/247/head
Nicolas George 8 years ago
parent 4c24f3ac16
commit 918891e146
  1. 2
      libavfilter/avfilter.c
  2. 12
      libavfilter/filters.h

@ -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);
}

@ -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.
*

Loading…
Cancel
Save