[vlc-devel] [PATCH 1/2] Revert "video output: remove unused vout_IsDisplayFiltered"

Steve Lhomme robux4 at ycbcr.xyz
Mon Oct 28 15:00:13 CET 2019


This reverts commit f7f39fcce6a10b06687516dd3433121dffb00185.
---
 src/video_output/display.c      | 7 +++++++
 src/video_output/vout_wrapper.h | 4 ++++
 2 files changed, 11 insertions(+)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 2b856ffd378..99843fb2bfe 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -402,6 +402,13 @@ picture_pool_t *vout_GetPool(vout_display_t *vd, unsigned count)
     return osys->pool;
 }
 
+bool vout_IsDisplayFiltered(vout_display_t *vd)
+{
+    vout_display_priv_t *osys = container_of(vd, vout_display_priv_t, display);
+
+    return osys->converters == NULL || !filter_chain_IsEmpty(osys->converters);
+}
+
 picture_t *vout_ConvertForDisplay(vout_display_t *vd, picture_t *picture)
 {
     vout_display_priv_t *osys = container_of(vd, vout_display_priv_t, display);
diff --git a/src/video_output/vout_wrapper.h b/src/video_output/vout_wrapper.h
index b65f2bdcb56..d95a34359d0 100644
--- a/src/video_output/vout_wrapper.h
+++ b/src/video_output/vout_wrapper.h
@@ -29,6 +29,10 @@
 
 picture_pool_t *vout_GetPool(vout_display_t *vd, unsigned count);
 
+/**
+ * It destroy a vout managed display.
+ */
+bool vout_IsDisplayFiltered(vout_display_t *);
 picture_t * vout_ConvertForDisplay(vout_display_t *, picture_t *);
 void vout_FilterFlush(vout_display_t *);
 
-- 
2.17.1



More information about the vlc-devel mailing list