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

Nicolas George george at nsup.org
Thu Dec 29 16:33:48 EET 2016


Signed-off-by: Nicolas George <george at nsup.org>
---
 libavfilter/avfilter.c | 2 +-
 libavfilter/filters.h  | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)


Changes in this commit: rename ff_link -> ff_inlink and move to filters.h.


diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 47a48998e0..932b499c03 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/filters.h b/libavfilter/filters.h
index f4a46a023c..bd38506c08 100644
--- a/libavfilter/filters.h
+++ b/libavfilter/filters.h
@@ -28,6 +28,11 @@
 #include "avfilter.h"
 
 /**
+ * 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.
  * @param[out]  new or current status
  * @return  >0 if status changed, <0 if status already acked, 0 otherwise
-- 
2.11.0



More information about the ffmpeg-devel mailing list