[vlc-commits] mosaic_bridge: use a NULL video context with a forced chroma
Steve Lhomme
git at videolan.org
Fri Nov 15 09:56:37 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Nov 7 16:21:11 2019 +0100| [3c721d3079f5c73c3d9d2eee30cf178e82286617] | committer: Steve Lhomme
mosaic_bridge: use a NULL video context with a forced chroma
We can't use the context of the real source and it's a CPU chroma so we should
use NULL.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c721d3079f5c73c3d9d2eee30cf178e82286617
---
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 d3b8d76a31..6b1f8c0a0c 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 );
More information about the vlc-commits
mailing list