[vlc-devel] [PATCH] mosaic_bridge: use a NULL video context with a forced chroma
Steve Lhomme
robux4 at ycbcr.xyz
Thu Nov 7 16:21:16 CET 2019
We can't use the context of the real source and it's a CPU chroma so we should
use NULL.
---
modules/stream_out/mosaic_bridge.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/stream_out/mosaic_bridge.c b/modules/stream_out/mosaic_bridge.c
index d3b8d76a316..6b1f8c0a0c1 100644
--- a/modules/stream_out/mosaic_bridge.c
+++ b/modules/stream_out/mosaic_bridge.c
@@ -571,7 +571,10 @@ static int video_update_format_decoder( decoder_t *p_dec, vlc_video_context *vct
es_format_t fmt;
es_format_InitFromVideo( &fmt, &p_dec->fmt_out.video );
if( p_sys->i_chroma )
+ {
fmt.video.i_chroma = p_sys->i_chroma;
+ vctx = NULL; // CPU chroma, no video context
+ }
filter_chain_Reset( p_sys->p_vf2, &fmt, &fmt );
es_format_Clean( &fmt );
filter_chain_AppendFromString( p_sys->p_vf2, psz_chain );
--
2.17.1
More information about the vlc-devel
mailing list