[vlc-devel] [PATCH 2/3] mosaic_bridge: don't use hardware decoder with --no-hw-dec

Steve Lhomme robux4 at ycbcr.xyz
Mon Jan 11 08:17:15 UTC 2021


It's still possible to use the hardware filters as the hw-dec option only
applies to decoding.
---
 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 74e780566cd..c7776baf734 100644
--- a/modules/stream_out/mosaic_bridge.c
+++ b/modules/stream_out/mosaic_bridge.c
@@ -283,6 +283,9 @@ static vlc_decoder_device * MosaicHoldDecoderDevice( struct decoder_owner *p_own
 
 static vlc_decoder_device * video_get_decoder_device( decoder_t *p_dec )
 {
+    if( !var_InheritBool( p_dec, "hw-dec" ) )
+        return NULL;
+
     struct decoder_owner *p_owner = dec_get_owner( p_dec );
     return MosaicHoldDecoderDevice(p_owner);
 }
-- 
2.29.2



More information about the vlc-devel mailing list