diff mbox

[FFmpeg-devel,02/17] lavfi: export ff_filter_set_ready() to the library.

Message ID 20161224174149.8995-3-george@nsup.org
State Superseded
Headers show

Commit Message

Nicolas George Dec. 24, 2016, 5:41 p.m. UTC
Signed-off-by: Nicolas George <george@nsup.org>
---
 libavfilter/avfilter.c | 2 +-
 libavfilter/internal.h | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index c1858fb6a0..191554eb6d 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -189,7 +189,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);
 }
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index 13666bc330..3c09032610 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -614,6 +614,11 @@  static inline int ff_norm_qscale(int qscale, int type)
 int ff_filter_get_nb_threads(AVFilterContext *ctx);
 
 /**
+ * Mark a filter ready and schedule it for activation.
+ */
+void ff_filter_set_ready(AVFilterContext *filter, unsigned priority);
+
+/**
  * Test and acknowledge the change of status on the link.
  * @return  >0 if status changed, 0 otherwise, <0 if status already acked
  */