[vlc-commits] mosaic_bridge: don't use hardware decoder with --no-hw-dec

Steve Lhomme git at videolan.org
Thu Jan 14 13:52:49 UTC 2021


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jan 11 09:16:08 2021 +0100| [a960b01fe86d16457fe9fdb15ae4db621651ba9e] | committer: Steve Lhomme

mosaic_bridge: don't use hardware decoder with --no-hw-dec

It's still possible to use the hardware filters as the hw-dec option only
applies to decoding.

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

 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 74e780566c..c7776baf73 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);
 }



More information about the vlc-commits mailing list