[vlc-commits] chroma: chain: fix wrong fmt_out

Thomas Guillem git at videolan.org
Tue Mar 20 14:11:32 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 20 14:03:35 2018 +0100| [bf2e19f46e316f28c19979e5d9c4889b8ba03e8d] | committer: Thomas Guillem

chroma: chain: fix wrong fmt_out

Regression from 7fd02feb6c6be674066b68c2f53776a5504f4657

You need to force the fmt_out in case the chain filter is allowed to change its
fmt_out.

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

 modules/video_chroma/chain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_chroma/chain.c b/modules/video_chroma/chain.c
index bfd8f50e8a..885676f534 100644
--- a/modules/video_chroma/chain.c
+++ b/modules/video_chroma/chain.c
@@ -445,7 +445,7 @@ static int CreateChain( filter_t *p_parent, const es_format_t *p_fmt_mid )
     else
     {
         if( filter_chain_AppendConverter( p_parent->p_sys->p_chain,
-                                          p_fmt_mid, NULL ) )
+                                          p_fmt_mid, &p_parent->fmt_out ) )
             goto error;
     }
     return VLC_SUCCESS;



More information about the vlc-commits mailing list