[vlc-commits] chroma: chain: force one level of iteration for filters

Thomas Guillem git at videolan.org
Fri Nov 17 10:23:35 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Nov 17 09:56:14 2017 +0100| [6e5e08677d9e279602397fcbc767e6d2a15b4ce5] | committer: Thomas Guillem

chroma: chain: force one level of iteration for filters

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e5e08677d9e279602397fcbc767e6d2a15b4ce5
---

 modules/video_chroma/chain.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/video_chroma/chain.c b/modules/video_chroma/chain.c
index a79c666cea..e3a8710346 100644
--- a/modules/video_chroma/chain.c
+++ b/modules/video_chroma/chain.c
@@ -192,6 +192,11 @@ static int ActivateFilter( vlc_object_t *p_this )
     if( !p_filter->b_allow_fmt_out_change || p_filter->psz_name == NULL )
         return VLC_EGENERIC;
 
+    /* Force only one level of iteration when using the chain converter from a
+     * filter. */
+    var_Create( p_filter, MODULE_STRING "-level", VLC_VAR_INTEGER );
+    var_SetInteger( p_filter, MODULE_STRING "-level", CHAIN_LEVEL_MAX - 1 );
+
     /* Try to add a converter before the requested filter */
     return Activate( p_filter, BuildFilterChain );
 }



More information about the vlc-commits mailing list