[vlc-devel] [PATCH 3/3] sout: sdi: don't use hardware decoder with --no-hw-dec
Steve Lhomme
robux4 at ycbcr.xyz
Mon Jan 11 08:24:29 UTC 2021
There is no video filter in SDI so forget about this comment.
On 2021-01-11 9:17, Steve Lhomme wrote:
> It's still possible to use the hardware filters as the hw-dec option only
> applies to decoding.
> ---
> modules/stream_out/sdi/SDIStream.cpp | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/modules/stream_out/sdi/SDIStream.cpp b/modules/stream_out/sdi/SDIStream.cpp
> index ce4588d28ce..a62de9071bb 100644
> --- a/modules/stream_out/sdi/SDIStream.cpp
> +++ b/modules/stream_out/sdi/SDIStream.cpp
> @@ -483,6 +483,9 @@ void VideoDecodedStream::VideoDecCallback_queue_cc(decoder_t *p_dec, block_t *p_
>
> vlc_decoder_device * VideoDecodedStream::VideoDecCallback_get_device(decoder_t *p_dec)
> {
> + if( !var_InheritBool( p_dec, "hw-dec" ) )
> + return NULL;
> +
> struct decoder_owner *p_owner;
> p_owner = container_of(p_dec, struct decoder_owner, dec);
> if (p_owner->dec_dev == NULL)
> --
> 2.29.2
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
More information about the vlc-devel
mailing list